I am trying to refer to all the libraries (modules) in the libs folder
how can I achieve that:
require ‘C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libs’
The above code does not work!
I am trying to refer to all the libraries (modules) in the libs folder
how can I achieve that:
require ‘C:\ironruby\ironruby\Merlin\Main\Languages\Ruby\Libs’
The above code does not work!
Dir.chdir(".") do
Dir["*.rb"].each do |f|
require f
end
end
I don’t know of a way in Ruby to do what you are asking for without
looping through the files.
Thanks,
JD
…there is no try
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs