[英]ruby uninitialized constant JiraWebeeh4r (NameError)
module JiraWebeeh4r
class MyWebeeh
...
do_get()
...
end
include JiraWebeeh4r
class Test
m = JiraWebeeh4r::MyWebeeh.new
m.do_get()
end
Then the wrong is as the title said. 然后就是标题所说的错误。
Do anyone have some suggestion? 有人有建议吗?
thanks. 谢谢。
Ok, I suggest: 好的,我建议:
require './jira_webeeh4r'
Instead of the include
. 而不是include
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.