From: "Jesús Gabriel y Galán" Date: 2010-06-25T16:18:36+09:00 Subject: Re: Singleton class in Ruby On Fri, Jun 25, 2010 at 6:11 AM, Manoj Kumar wrote: > Can we see the singleton class as object in ruby. Like this? irb(main):001:0> o = Object.new => # irb(main):002:0> singleton = class << o; self; end => #> irb(main):003:0> singleton => #> irb(main):004:0> def o.test; "test"; end => nil irb(main):008:0> singleton.instance_methods(false) => ["test"] Jesus.