123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Bisect::ExampleMinimizer::ExampleRange Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: rspec-core/lib/rspec/core/bisect/example_minimizer.rb

Overview

Convenience class for describing a subset of the candidate examples

Instance Attribute Summary

  • #finish rw Internal use only

    Convenience class for describing a subset of the candidate examples.

  • #start rw Internal use only

    Convenience class for describing a subset of the candidate examples.

Instance Method Summary

Instance Attribute Details

#finish (rw)

Convenience class for describing a subset of the candidate examples

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/bisect/example_minimizer.rb', line 94

ExampleRange = Struct.new(:start, :finish)

#start (rw)

Convenience class for describing a subset of the candidate examples

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/bisect/example_minimizer.rb', line 94

ExampleRange = Struct.new(:start, :finish)

Instance Method Details

#description

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/bisect/example_minimizer.rb', line 95

def description
  if start == finish
    "example #{start}"
  else
    "examples #{start}-#{finish}"
  end
end