From: Nobuyoshi Nakada Date: 2006-11-19T08:09:05+09:00 Subject: Re: How to call a class method via the singleton if it exists Hi, At Sun, 19 Nov 2006 01:00:15 +0900, Trans wrote in [ruby-talk:225642]: > I want to call a class level method from the the instance level, but I > need it to go through the singeton if it exists. Here is the most basic > example: If I were you: > class X > def self.f ; "A" ; end def f; self.class.f; end def g ; f ; end > end -- Nobu Nakada