Method: ActiveSupport::Dependencies::ClassCache#store
- Defined in:
- lib/active_support/dependencies.rb
#store(klass) ⇒ Object
591 592 593 594 595 596 |
# File 'lib/active_support/dependencies.rb', line 591 def store(klass) return self unless klass.respond_to?(:name) raise(ArgumentError, "anonymous classes cannot be cached") if klass.name.empty? @store[klass.name] = klass self end |