Class: ActiveSupport::Dependencies::ClassCache::Getter

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/dependencies.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Getter

Returns a new instance of Getter.



555
556
557
# File 'lib/active_support/dependencies.rb', line 555

def initialize(name)
  @name = name
end

Instance Method Details

#getObject



559
560
561
# File 'lib/active_support/dependencies.rb', line 559

def get
  Reference.get @name
end