Jeff Leeman wrote:
> Well, what I'm looking for is to be able run something like:
> 
> ruby script/runner "SomeClassName.method_name({:some_key_1 => 
> 'some_value_1', :some_key_2 => 'some_value_2', :some_key_3 => 
> 'some_value_3'})"
> 
> Joel VanderWerf wrote:
>> Jeff Leeman wrote:
>>> Is it not possible to pass hashes as command-line arguments to a Ruby
>>> script?
>> Like ... ?
> 

You could just eval ARGV[0] in this case.

$ ruby -e 'p eval(ARGV[0])' '{:foo => :bar}'
{:foo=>:bar}

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407