From: Robert Klemme Date: 2012-05-31T02:56:37+09:00 Subject: Re: Newbie question: command line to execute a method from .rb file On Wed, May 30, 2012 at 7:22 PM, n1 n0x wrote: > Ahhhh! > > Thank you guys. Now I see clearer. > Jesus got it right indeed; I wanted to call the function from the > outside - on the command line. > > What I didn't understand in Ruby is that the call of the functions were > indeed to be written as part of the script ! > > OKAY.... Makes sense. Well, you can also use the whole script as "function". Arguments are then in ARGV (see my previous posting). Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/