From: "Földes László" Date: 2012-04-11T19:42:24+09:00 Subject: Re: A Beginner's Question about Metaprogramming Phil Stone wrote in post #1055939: > > So if I understand this correctly, the singleton_methods are just the > class methods. Is that right? > No. Singleton methods are methods that exist only for a single object. > ary = Array.new(1..3) > ary.size => 3 > def ary.size * 23748236478 * end > ary.size => 23748236478 I have redefined ary's size method, however this did not change the parent class (Array) size method. New Arrays will have the 'default' size method. 'size' is a singleton method: > ary.singleton_methods => [:size] -- Posted via http://www.ruby-forum.com/.