Brian Candler wrote in post #990955: >> or how get name of variable in class method? > > That's not possible either. The same object could be pointed to by many > variables (local and/or global and/or instance), or by none. For > example, maybe the only reference to the object is as a value in a Hash. Thanks! But i can get object_id: class String def get_id puts self.__id__ puts self.object_id end end Is it realy to get name by ID? -- Posted via http://www.ruby-forum.com/.