Class: RSpec::Core::Ordering::Custom Private
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | rspec-core/lib/rspec/core/ordering.rb |
Overview
Orders items based on a custom block.
Class Method Summary
- .new(callable) ⇒ Custom constructor Internal use only
Instance Method Summary
- #order(list) Internal use only
Constructor Details
.new(callable) ⇒ Custom
# File 'rspec-core/lib/rspec/core/ordering.rb', line 72
def initialize(callable) @callable = callable end
Instance Method Details
#order(list)
[ GitHub ]# File 'rspec-core/lib/rspec/core/ordering.rb', line 76
def order(list) @callable.call(list) end