【发布时间】:2012-08-28 20:30:52
【问题描述】:
我似乎看不出这段代码是怎么回事:
class Cherry
class << self
def call env
self::Application.call
end
end
end
class Cherry
class Application
def call env
#Framework logic
end
end
end
run Cherry
这是我的应用程序中无法运行的部分。我不知道为什么:
NoMethodError at / undefined method 'call' for Cherry::Application:Class
【问题讨论】: