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

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/example_minimizer.rb

Overview

Convenience class for describing a subset of the candidate examples

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Instance Attribute Details

#finishObject

Returns the value of attribute finish

Returns:

  • (Object)

    the current value of finish



94
95
96
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/example_minimizer.rb', line 94

def finish
  @finish
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



94
95
96
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/example_minimizer.rb', line 94

def start
  @start
end

Instance Method Details

#descriptionObject



95
96
97
98
99
100
101
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/bisect/example_minimizer.rb', line 95

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