class Person def name puts \"Dave\" end end puts Person.object_id
There are only two ways of accessing methods :
1) Someclass.method in
Yes, Ruby classes are objects:
>> String.is_a? Object => true >> String.methods.count => 131 >> Fixnum.methods.count => 128