Sha256: 2e9c3ed863e15dbcf78bb4c1db9baa6f9d7b9ca7d596567461578bfacdee3b1d

Contents?: true

Size: 305 Bytes

Versions: 11

Compression:

Stored size: 305 Bytes

Contents

module MPatch

  module Include

    module 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

  end

  require File.join 'mpatch','injector'


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mpatch-2.12.2 lib/mpatch/integer.rb
mpatch-2.12.1 lib/mpatch/integer.rb
mpatch-2.12.0 lib/mpatch/integer.rb
mpatch-2.11.0 lib/mpatch/integer.rb
mpatch-2.9.0 lib/mpatch/integer.rb
mpatch-2.8.1 lib/mpatch/integer.rb
mpatch-2.8.0 lib/mpatch/integer.rb
mpatch-2.7.0 lib/mpatch/integer.rb
mpatch-2.6.0 lib/mpatch/integer.rb
mpatch-2.5.0 lib/mpatch/integer.rb
mpatch-2.4.0 lib/mpatch/integer.rb