Sha256: 282ca8d5ecbe13c21346891f91769e129386a1b718e5769ed75787812e382217

Contents?: true

Size: 273 Bytes

Versions: 145

Compression:

Stored size: 273 Bytes

Contents

unless 0.respond_to?(:fdiv)
  class Numeric
    def fdiv(other)
      to_f / other
    end
  end
end

# String elements referenced with [] <= 1.8.6 return a Fixnum. Cheat to allow
# for the simpler "test"[2].ord construct
class Numeric 
  def ord
    return self
  end
end

Version data entries

145 entries across 145 versions & 3 rubygems

Version Path
microwave-0.1006.20 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.19 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.18 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.17 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.16 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.15 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.14 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.13 lib/chef/monkey_patches/numeric.rb
chef-0.10.10 lib/chef/monkey_patches/numeric.rb
chef-0.10.10.rc.4 lib/chef/monkey_patches/numeric.rb
chef-0.10.10.rc.3 lib/chef/monkey_patches/numeric.rb
chef-0.10.10.rc.2 lib/chef/monkey_patches/numeric.rb
chef-0.10.10.rc.1 lib/chef/monkey_patches/numeric.rb
tylerrick-chef-0.10.9 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.10 lib/chef/monkey_patches/numeric.rb
chef-0.10.10.beta.1 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.9 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.6 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.3 lib/chef/monkey_patches/numeric.rb
tylerrick-chef-0.10.8 lib/chef/monkey_patches/numeric.rb