Module: MPatch::Include::Integer
- Defined in:
- lib/mpatch/integer.rb
Instance Method Summary collapse
-
#each(&block) ⇒ Object
because for i in integer/fixnum not working, here is a little patch.
Instance Method Details
#each(&block) ⇒ Object
because for i in integer/fixnum not working, here is a little patch
9 10 11 12 13 |
# File 'lib/mpatch/integer.rb', line 9 def each &block self.times do |number| block.call number end end |