Michael Sokol wrote in post #1036318:
> Since classes are objects themselves, they also have methods. To define
> class methods,
>
> class MyClass
>   def self.my_method
>     p self
>   end
> end
>
> MyClass.my_method
>
> Hope this helped.

Hi Michael,

I am confused.

Can you please say the example by editing my code itself.

Thanks in Advance

-- 
Posted via http://www.ruby-forum.com/.