Parent

Methods

Class/Module Index [+]

Quicksearch

RSpec::Core::Ordering::Custom

@private Orders items based on a custom block.

Public Class Methods

new(callable) click to toggle source
# File lib/rspec/core/ordering.rb, line 61
def initialize(callable)
  @callable = callable
end

Public Instance Methods

order(list) click to toggle source
# File lib/rspec/core/ordering.rb, line 65
def order(list)
  @callable.call(list)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.