On Nov 28, 3:43 pm, Bob Mundane <[EMAIL PROTECTED]>
wrote:
> Hi, constants defined in environment.rb are application wide.
>
> But how and where are they stored ? I mean which is the class or module
> to which they are attached ?
>
Object. (and there's nothing special about environment.rb. If you
define a constant outside of a class or module then it will get set at
the top level (bearing in mind that ruby's constant resolution only
really cares about lexical scope)
Fred
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---