Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/shiftly/core_ext/fixnum.rb
Instance Method Summary collapse
Instance Method Details
#next_shift ⇒ Object
3 4 5 |
# File 'lib/shiftly/core_ext/fixnum.rb', line 3 def next_shift self == Shiftly::Config.number_of_shifts ? 1 : self + 1 end |
#prev_shift ⇒ Object
7 8 9 |
# File 'lib/shiftly/core_ext/fixnum.rb', line 7 def prev_shift self == 1 ? Shiftly::Config.number_of_shifts : self - 1 end |