Sergey Avseyev wrote in post #1134821:
> On Wed, 29 Jan 2014 15:52:43 +0100
> Arup Rakshit <lists / ruby-forum.com> wrote:
>
>> if I understand this `Animal.respond_to?(:bark) # => false`, I can't
>> understand `Object.respond_to?(:foo) # => true` .
>
> 1.9.3p484 (main):001:0> Object.is_a?(Class)
> true
> 1.9.3p484 (main):002:0> Class.is_a?(Object)
> true
>
> Because Object inherits from Class and Class inherits from the Object

This part in Ruby is very confusing to me.. :(

Thanks for the answer!

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