class Cucumberator::StepLine

Attributes

number[RW]

Public Class Methods

new(line) click to toggle source
# File lib/cucumberator/step_line.rb, line 5
def initialize(line)
  @number = line.to_i
end

Public Instance Methods

+(other) click to toggle source
# File lib/cucumberator/step_line.rb, line 13
def +(other)
  number + other.to_i
end
-(other) click to toggle source
# File lib/cucumberator/step_line.rb, line 9
def -(other)
  number - other.to_i
end
decrement!() click to toggle source
# File lib/cucumberator/step_line.rb, line 25
def decrement!
  self.number -= 1
end
increment!() click to toggle source
# File lib/cucumberator/step_line.rb, line 21
def increment!
  self.number += 1
end
set(other) click to toggle source
# File lib/cucumberator/step_line.rb, line 17
def set(other)
  self.number = other.to_i
end