module StairMaster::Concerns::Tests

Public Instance Methods

is_first_step?(step_name) click to toggle source
# File lib/stair_master/concerns/tests.rb, line 28
def is_first_step?(step_name)
  step_name == available_steps.first
end
is_last_step?(step_name) click to toggle source
# File lib/stair_master/concerns/tests.rb, line 24
def is_last_step?(step_name)
  step_name == available_steps.last
end
on_first_step?() click to toggle source
# File lib/stair_master/concerns/tests.rb, line 20
def on_first_step?
  @stair_master_on_first_step ||= is_first_step?(current_step_name)
end
on_last_step?() click to toggle source

Methods ——————————————

# File lib/stair_master/concerns/tests.rb, line 16
def on_last_step?
  @stair_master_on_last_step ||= is_last_step?(current_step_name)
end
step_should_be_skipped?(step=nil) click to toggle source
# File lib/stair_master/concerns/tests.rb, line 32
def step_should_be_skipped?(step=nil)
  step = step.nil? ? current_step : step
  step.skip?(self)
end