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
Saturday, July 12, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment