Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有控制器和相应帮助器(类似于 Rails)的 Padrino 应用程序。Sorbet 将帮助程序中定义的方法报告为在调用它的控制器中丢失。在当前的 Sorbet 实施中对此有什么可做的吗?
您可以在 rbi 文件中定义控制器包含帮助程序。这将欺骗 Sorbet 包含来自助手的方法
# — foo_controller.rbi class FooController include BarHelper end