Saturday, July 12, 2008

Library of Functions

More information is available at http://www.rubycentral.com/book/

Sample is
Create a file called file call_me.rb that contains

def do_something(argument)
  # do something
end

Create file call_another_file.rb that contains

require "call_me" # this includes call_me.rb
do_something(argument) # this calls method do_something

No comments: