How is class methods defined in Ruby?

Questions by sripri   answers by sripri

Showing Answers 1 - 3 of 3 Answers

natchi

  • Aug 17th, 2007
 

def self.methodname
--------
--------
end

or
def classname.methodname
--------
--------
end

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions