class RSpec::Core::Ordering::Delayed
@private A strategy which delays looking up the ordering until needed
Public Class Methods
new(registry, name)
click to toggle source
# File lib/rspec/core/ordering.rb, line 84 def initialize(registry, name) @registry = registry @name = name end
Public Instance Methods
order(list)
click to toggle source
# File lib/rspec/core/ordering.rb, line 89 def order(list) strategy.order(list) end
Private Instance Methods
lookup_strategy()
click to toggle source
# File 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
strategy()
click to toggle source
# File lib/rspec/core/ordering.rb, line 95 def strategy @strategy ||= lookup_strategy end