添加自定义代码
添加自定义代码
本页面介绍如何向您的 Ruby SDK 添加自定义逻辑、方法和依赖项。
These steps cover adding a new custom file to the SDK. To preserve line-level edits to a generated file, use Replay instead.
添加自定义逻辑
开始添加自定义代码:
添加自定义 SDK 方法
Fern also allows you to add custom methods to the SDK itself (e.g.
client.my_method() ) by inheriting the Fern generated client and then
extending it.
添加自定义依赖项
企业功能
此功能仅适用于企业计划。如需开始使用,请联系 support@buildwithfern.com。
要添加自定义代码所需的 gem,请更新您的 generators.yml。
generators.yml