From: "marco antonio f." Date: 2011-02-23T21:40:51+09:00 Subject: Re: Calling class method from instance method Ryan Davis , "When you want to have a class call an "instance method", which instance would call it?" Good point! Makes sense. Anurag Priyam, this is pretty wierd... but works. You see, there's stuff that need to be donne in both cases, in instances and in classes. For example: class SomeClass def self.method if file_exists? #do stuff end #something need to be donne here, and I need to check if the file exists #I dont want to define a nother class method exactly the same as the already declared instance method. end def file_exists? #there are instance methods depending on this one File.exists?("some_file_name.txt") end end How do you deal with this kind of thing? -- Posted via http://www.ruby-forum.com/.