From: Robert Klemme Date: 2007-11-18T01:30:03+09:00 Subject: Re: argv defines 2007/11/16, Jano Svitok : > On Nov 16, 2007 9:31 PM, Michael Linfield wrote: > > if i wanted to ARGV this, how would i do it? > > IE from the command line i would want to do as such --- > > ./script.rb User.join_group("Group_1") > > > > Any ideas? > > One way is to use eval. Other way is to define special commands > (--join_group=Group_1). Yet another solution is to do it directly on the command line: ruby -r script -e 'User.join_group("Group_1")' Kind regards robert -- use.inject do |as, often| as.you_can - without end