From: "Eric C." Date: 2010-11-30T14:49:28+09:00 Subject: Any way to know a Class's name in class method? Hi: I'm writing a class where I need to know the class's name inside a class method: class MyClass def instance_method puts self.class.name # => "MyClass" end def self.class_method self.class.name # => Undefined how can I get class.name here? end end Thanks, Eric -- Posted via http://www.ruby-forum.com/.