class Integer
Public Instance Methods
after()
click to toggle source
Return an IntegerRange that captures all the values after the integer @return [IntegerRange] a new Range
# File lib/hf.rb, line 110 def after (1 + self)..-1 end
before()
click to toggle source
Return an IntegerRange that captures all the positive values before the integer @return [IntegerRange] a new Range
# File lib/hf.rb, line 116 def before 0..(self - 1) end