module Byebug::Helpers::FrameHelper

def direction(step)

Returns:
  • (Integer) - +1 if step is positive / -1 if negative

Parameters:
  • step (Integer) -- A positive or negative integer
def direction(step)
  step / step.abs
end