[Rails] Re: How is the Kernel module an ancestor of Object?
Dheeraj Kumar wrote in post #1077704:
> It would be more correct to say that Object includes the Kernel module.
> see http://ruby-doc.org/core-1.9.3/Object.html
>
When a class includes a module, ruby creates an anonymous class out of
the module and inserts into the inheritance chain directly above the
includer.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home