简体   繁体   English

红宝石未初始化的常量JiraWebeeh4r(NameError)

[英]ruby uninitialized constant JiraWebeeh4r (NameError)

file jira_webeeh4r.rb 文件jira_webeeh4r.rb

module JiraWebeeh4r
class MyWebeeh
...
do_get()
...
end

file test.rb 文件test.rb

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM