Neither ruby and nor irb can load .rb file in current directory

前端 未结 7 1298
慢半拍i
慢半拍i 2021-01-31 17:30

I\'m having a really noob problem with importing files in Ruby. I\'m making a Ruby app in Windows XP. All the class files for the app are in \"C:/Documents/Prgm/Surveyor_R

7条回答
  •  天命终不由人
    2021-01-31 18:00

    Noticed the same behavior but my linux roots had me try:.\file.rb and it loaded into the irb. Try explicitly declaring the current directory.

提交回复
热议问题