Where are the environments constant defined?


#1

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 ?

Thanks


#2

On Nov 28, 3:43 pm, Bob M. removed_email_address@domain.invalid
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


#3

Thanks a lot Fred ! I was totally unaware about this…