Class: Accord::Registrations

Inherits:
Object
  • Object
show all
Defined in:
lib/accord/base_registry.rb

Instance Method Summary collapse

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