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
mpatch-1.3.0 lib/mpatch/integer.rb
mpatch-1.2.0 lib/mpatch/integer.rb
mpatch-1.1.0 lib/mpatch/integer.rb
mpatch-1.0.2 lib/mpatch/integer.rb
mpatch-1.0.1 lib/mpatch/integer.rb
mpatch-1.0.0 lib/mpatch/integer.rb
procemon-0.8.1 lib/procemon/mpatch/integer.rb
procemon-0.8.0 lib/procemon/mpatch/integer.rb
procemon-0.7.0 lib/procemon/mpatch/integer.rb
procemon-0.6.3 lib/procemon/mpatch/integer.rb
procemon-0.6.2 lib/procemon/mpatch/integer.rb
procemon-0.6.1 lib/procemon/mpatch/integer.rb
procemon-0.5.0 lib/procemon/mpatch/integer.rb
procemon-0.4.5 lib/procemon/mpatch/integer.rb
procemon-0.4.4 lib/procemon/mpatch/integer.rb
procemon-0.4.3 lib/procemon/mpatch/integer.rb
procemon-0.4.2 lib/procemon/mpatch/integer.rb
procemon-0.4.1 lib/procemon/mpatch/integer.rb
procemon-0.4.0 lib/procemon/mpatch/integer.rb
procemon-0.3.4 lib/procemon/mpatch/integer.rb