Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Calling another Ruby script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Matt Neuburg, post: 4645972"] Just load the other script in the usual way and call something in it. Example: script1.rb: def doStuff(x) end script2.rb: require 'script1' list_of_files = # whatever list_of_files.each do |a_file| begin doStuff(a_file) rescue puts "#{a_file} didn't process correctly" end end m. ???? m. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Calling another Ruby script
Top