class ActiveSupport::Dependencies::Reference

Attributes

name[R]

Public Class Methods

clear!() click to toggle source
# File lib/active_support/dependencies.rb, line 538
def self.clear!
  @@constants.clear
end
new(name) click to toggle source
# File lib/active_support/dependencies.rb, line 529
def initialize(name)
  @name = name.to_s
  @@constants[@name] = name if name.respond_to?(:name)
end

Public Instance Methods

get() click to toggle source
# File lib/active_support/dependencies.rb, line 534
def get
  @@constants[@name]
end