【发布时间】:2013-05-08 20:41:25
【问题描述】:
我有一段包含命令的代码。我想将更多命令保存在一个单独的文件中并将它们拉入主文件。因此,我的主文件可以更新而不会丢失任何自定义命令。我该怎么办?
{
class myClass()
#commands
listen_for /what is your name/i do
say "my name is mud"
end
## Insert Custom.rb here ##
# Everything in the custom rb file is just ike the "listen_for" command above
end
}
【问题讨论】: