Jason Lillywhite wrote: > 1. I see that your send method on plot.send is a method from > Gnuplot::Plot.new but what exactly is it doing? My guess is it takes > 'val' and sends it to the plot method that corresponds with 'opt' as it > iterates through my hash. The #send method is common to all ruby objects: ------------------------------------------------------------ Object#send obj.send(symbol [, args...]) => obj obj.__send__(symbol [, args...]) => obj From Ruby 1.8 ------------------------------------------------------------------------ Invokes the method identified by symbol, passing it any arguments specified. You can use __send__ if the name send clashes with an existing method in obj. class Klass def hello(*args) "Hello " + args.join(' ') end end k = Klass.new k.send :hello, "gentle", "readers" #=> "Hello gentle readers" -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407