S
Svin Svin
I have two files foo.rb and test.rb in the same folder.
test.rb
------------------------------------
puts RUBY_VERSION
require 'foo'
------------------------------------
foo.rb
------------------------------------
module Foo
PATTT = "2323"
class Foo2
def f
puts 'hello world'
end
end
end
puts 'eee'
------------------------------------
Running under NetBeans it's OK. But running test.rb through concole OR
RubyMine fails with:
C:\USERS\ADMIN>ruby
C:\Users\Admin\Documents\NetBeansProjects\RubyApplication1\l
ib\test.rb
1.9.1
C:/Users/Admin/Documents/NetBeansProjects/RubyApplication1/lib/test.rb:2:in
`req
uire': no such file to load -- foo (LoadError)
from
C:/Users/Admin/Documents/NetBeansProjects/RubyApplication1/lib/test
rb:2:in `<main>'
test.rb
------------------------------------
puts RUBY_VERSION
require 'foo'
------------------------------------
foo.rb
------------------------------------
module Foo
PATTT = "2323"
class Foo2
def f
puts 'hello world'
end
end
end
puts 'eee'
------------------------------------
Running under NetBeans it's OK. But running test.rb through concole OR
RubyMine fails with:
C:\USERS\ADMIN>ruby
C:\Users\Admin\Documents\NetBeansProjects\RubyApplication1\l
ib\test.rb
1.9.1
C:/Users/Admin/Documents/NetBeansProjects/RubyApplication1/lib/test.rb:2:in
`req
uire': no such file to load -- foo (LoadError)
from
C:/Users/Admin/Documents/NetBeansProjects/RubyApplication1/lib/test
rb:2:in `<main>'