From: Phrogz Date: 2008-05-07T12:10:02+09:00 Subject: Re: get method in Array subclass: where's it defined? On May 6, 8:51 pm, RichardOnRails wrote: > Secondly, my adaptation of Daniel's suggestion, including sub- > classing, works with no definition of get anywhere.  And the code runs > without any visible definition of get - certainly not mine. > > So I still wish someone would show where this visible undefined get > is, in fact, defined.  In fact,  it does something with the "splat" > operator ... and then I'm lost. Is this under vanilla Ruby or Rails? It simply doesn't work as you claim under Ruby alone: irb(main):001:0> class Matrix < Array; end => nil irb(main):002:0> m = Matrix.new => [] irb(main):003:0> m.methods.grep /get/ => ["instance_variable_get"] irb(main):004:0> m.get NoMethodError: undefined method `get' for []:Matrix from (irb):4 from :0