Class: Accord::Registrations
- Inherits:
-
Object
- Object
- Accord::Registrations
- Defined in:
- lib/accord/base_registry.rb
Instance Method Summary collapse
- #by_order(order) ⇒ Object
-
#initialize(lookup_class) ⇒ Registrations
constructor
A new instance of Registrations.
Constructor Details
#initialize(lookup_class) ⇒ Registrations
Returns a new instance of Registrations.
7 8 9 |
# File 'lib/accord/base_registry.rb', line 7 def initialize(lookup_class) @lookup_class = lookup_class end |
Instance Method Details
#by_order(order) ⇒ Object
11 12 13 |
# File 'lib/accord/base_registry.rb', line 11 def by_order order hash[order] ||= @lookup_class.new(order, extendors) end |