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
- .new(configuration) ⇒ Registry constructor Internal use only
Instance Attribute Summary
- #used_random_seed? ⇒ Boolean readonly Internal use only
Instance Method Summary
- #fetch(name, &fallback) Internal use only
- #has_strategy?(name) ⇒ Boolean Internal use only
- #register(sym, strategy) Internal use only
Instance Attribute Details
#used_random_seed? ⇒ Boolean
(readonly)
# 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
# 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