【发布时间】:2012-03-27 08:53:58
【问题描述】:
我在 thor 中列出我的任务时遇到问题,即使是最简单的程序:
class Mytest < Thor
desc "Hello world", "Puts 'hello world' on the console"
def hello
puts "Hello world"
end
end
这是我运行thor list时的控制台输出
$ thor list
mytest
------
thor mytest:world # Puts 'hello world' on the console
如您所见,输出中省略了“hello”方法名称。你能帮帮我吗?
谢谢你,
保罗
【问题讨论】: