Methods
Class Public methods
new()
Source:
# File activesupport/lib/active_support/dependencies.rb, line 568
def initialize
@store = Concurrent::Map.new
end
Instance Public methods
clear!()
Source:
# File activesupport/lib/active_support/dependencies.rb, line 598
def clear!
@store.clear
end
empty?()
Source:
# File activesupport/lib/active_support/dependencies.rb, line 572
def empty?
@store.empty?
end
get(key)
Also aliased as: []
Source:
# File activesupport/lib/active_support/dependencies.rb, line 580
def get(key)
key = key.name if key.respond_to?(:name)
@store[key] ||= Inflector.constantize(key)
end
key?(key)
Source:
# File activesupport/lib/active_support/dependencies.rb, line 576
def key?(key)
@store.key?(key)
end