简体   繁体   中英

ruby uninitialized constant JiraWebeeh4r (NameError)

file jira_webeeh4r.rb

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

file 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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