module MPatch::Include::Integer

Public Instance Methods

each(&block) click to toggle source

because for i in integer/fixnum not working, here is a little patch

# File lib/mpatch/integer.rb, line 9
def each &block
  self.times do |number|
    block.call   number
  end
end