添加自定义代码
添加自定义代码
本页面介绍如何向您的 Ruby SDK 添加自定义逻辑、方法和依赖项。
Before getting started, read about how Fern SDKs use custom code and learn about the
.fernignore file.添加自定义逻辑
开始添加自定义代码:
添加自定义 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