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
chef-10.14.4.rc.0 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.32 lib/chef/monkey_patches/numeric.rb
chef-10.14.2 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.31 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.30 lib/chef/monkey_patches/numeric.rb
chef-10.14.0 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.rc.4 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.rc.3 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.rc.2 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.rc.1 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.rc.0 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.beta.3 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.beta.2 lib/chef/monkey_patches/numeric.rb
chef-10.14.0.beta.1 lib/chef/monkey_patches/numeric.rb
chef-10.12.0 lib/chef/monkey_patches/numeric.rb
chef-10.12.0.rc.1 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.29 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.27 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.22 lib/chef/monkey_patches/numeric.rb
microwave-0.1006.21 lib/chef/monkey_patches/numeric.rb