Class: RSpec::Core::Ordering::Delayed Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-core/lib/rspec/core/ordering.rb |
Overview
A strategy which delays looking up the ordering until needed
Class Method Summary
- .new(registry, name) ⇒ Delayed constructor Internal use only
Instance Method Summary
- #order(list) Internal use only
- #lookup_strategy private Internal use only
- #strategy private Internal use only
Instance Method Details
#lookup_strategy (private)
[ GitHub ]# File 'rspec-core/lib/rspec/core/ordering.rb', line 99
def lookup_strategy raise "Undefined ordering strategy #{@name.inspect}" unless @registry.has_strategy?(@name) @registry.fetch(@name) end
#order(list)
[ GitHub ]# File 'rspec-core/lib/rspec/core/ordering.rb', line 89
def order(list) strategy.order(list) end
#strategy (private)
[ GitHub ]# File 'rspec-core/lib/rspec/core/ordering.rb', line 95
def strategy @strategy ||= lookup_strategy end