class Fixnum

Public Instance Methods

next_shift() click to toggle source
# File lib/shiftly/core_ext/fixnum.rb, line 3
def next_shift
  self == Shiftly::Config.number_of_shifts ? 1 : self + 1
end
prev_shift() click to toggle source
# File lib/shiftly/core_ext/fixnum.rb, line 7
def prev_shift
  self == 1 ? Shiftly::Config.number_of_shifts : self - 1
end