Sha256: 5ae50c76025dabdfaf7b691a9659bd441d469b92f75b16a0454e5d9327197bf8

Contents?: true

Size: 181 Bytes

Versions: 35

Compression:

Stored size: 181 Bytes

Contents

class Integer

  # because for i in integer/fixnum not working,
  # here is a little patch
  def each &block
    self.times do |number|
      block.call   number
    end
  end

end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
procemon-0.3.3 lib/procemon/mpatch/integer.rb
procemon-0.3.2 lib/procemon/mpatch/integer.rb
procemon-0.3.1 lib/procemon/mpatch/integer.rb
procemon-0.2.0 lib/procemon/mpatch/integer.rb
procemon-0.1.5 lib/procemon/mpatch/integer.rb
procemon-0.1.4 lib/procemon/mpatch/integer.rb
procemon-0.1.3 lib/procemon/mpatch/integer.rb
procemon-0.1.1 lib/procemon/mpatch/integer.rb
procemon-0.0.9 lib/procemon/mpatch/integer.rb
procemon-0.0.8 lib/procemon/mpatch/integer.rb
procemon-0.0.7 lib/procemon/mpatch/integer.rb
procemon-0.0.6 lib/procemon/mpatch/integer.rb
procemon-0.0.5 lib/procemon/mpatch/integer.rb
procemon-0.0.4 lib/procemon/mpatch/integer.rb
procemon-0.0.3 lib/procemon/mpatch/integer.rb