module StairMaster::Concerns::Traversal
Public Instance Methods
current_step()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 35 def current_step @stair_master_current_step ||= get_step_by_index current_step_index end
current_step_index()
click to toggle source
Current Step
————————————-
# File lib/stair_master/concerns/traversal.rb, line 31 def current_step_index @stair_master_current_step_index ||= get_step_index_by_name current_step_name end
current_step_name()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 39 def current_step_name @stair_master_current_step_name ||= controller_name.to_sym end
first_step()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 22 def first_step @stair_master_first_step ||= get_step_by_name available_steps.first end
last_step()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 26 def last_step @stair_master_last_step ||= get_step_by_name available_steps.last end
next_step()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 48 def next_step @stair_master_next_step ||= ( next_step_index.nil? ? nil : get_step_by_index(next_step_index) ) end
next_step_index()
click to toggle source
Next Step
—————————————-
# File lib/stair_master/concerns/traversal.rb, line 44 def next_step_index @stair_master_next_step_index ||= get_next_step_index end
next_step_name()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 52 def next_step_name @stair_master_next_step_name ||= ( next_step_index.nil? ? nil : get_step_name_by_index(next_step_index) ) end
previous_step()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 61 def previous_step @stair_master_previous_step ||= ( previous_step_index.nil? ? nil : get_step_by_index(previous_step_index) ) end
previous_step_index()
click to toggle source
Previous Step
————————————
# File lib/stair_master/concerns/traversal.rb, line 57 def previous_step_index @stair_master_previous_step_index ||= get_previous_step_index end
previous_step_name()
click to toggle source
# File lib/stair_master/concerns/traversal.rb, line 65 def previous_step_name @stair_master_previous_step_name ||= ( previous_step_index.nil? ? nil : get_step_name_by_index(previous_step_index) ) end