Hello.
How can I execute one .rb file from other .rb file?
For example, if I open start.rb, then end.rb will started from start.rb
Thanks in advance, Michael
Hello.
How can I execute one .rb file from other .rb file?
For example, if I open start.rb, then end.rb will started from start.rb
Thanks in advance, Michael
just use load statement…
load “end.rb”
additional info here:
http://ruby-doc.org/ruby-1.9/classes/Kernel.html#M002614
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