The metaprogramming nature of ruby is the most advantage feature of ruby. Thank You, Uma Mahesh.
On Tuesday, September 4, 2012 7:01:32 AM UTC+5:30, John Merlino wrote: > > Yes, it is a basic feature of ruby that you can reopen a class > definition. I forgot about that. > > On Sep 3, 4:05 pm, Colin Law <[email protected]> wrote: > > On 3 September 2012 19:08, John Merlino <[email protected]> wrote: > > > > > The ActionView module is declared several times in the Rails source: > > > > > rails/actionpack/lib/action_view/base.rb,rails/actionpack/lib/ > > > action_view/buffers.rb,rails/actionpack/lib/action_view/digestor.rb, > > > rails/actionpack/lib/action_view/helpers/asset_tag_helpers/ > > > asset_paths.rb, and the list goes on and on. > > > > > How is it able to be declared like this in multiple files without the > > > previous definition of it being overwritten? > > > > It is a basic feature of Ruby that you can re-open a class definition > > and add or redefine methods. > > > > Colin > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/RT7CLUhIqqoJ. For more options, visit https://groups.google.com/groups/opt_out.

