123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Ordering::Registry 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

Stores the different ordering strategies.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#used_random_seed?Boolean (readonly)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/ordering.rb', line 134

def used_random_seed?
  @strategies[:random].used?
end

Instance Method Details

#fetch(name, &fallback)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/ordering.rb', line 122

def fetch(name, &fallback)
  @strategies.fetch(name, &fallback)
end

#has_strategy?(name) ⇒ Boolean

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/ordering.rb', line 126

def has_strategy?(name)
  @strategies.key?(name)
end

#register(sym, strategy)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/ordering.rb', line 130

def register(sym, strategy)
  @strategies[sym] = strategy
end