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.34.6-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.34.6 lib/chef/monkey_patches/numeric.rb
chef-10.34.4 lib/chef/monkey_patches/numeric.rb
chef-10.34.4-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.34.2-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.34.2 lib/chef/monkey_patches/numeric.rb
chef-10.34.0-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.34.0 lib/chef/monkey_patches/numeric.rb
chef-10.32.2-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.32.2 lib/chef/monkey_patches/numeric.rb
chef-10.32.0.rc.0 lib/chef/monkey_patches/numeric.rb
chef-10.32.0.rc.0-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.30.4 lib/chef/monkey_patches/numeric.rb
chef-10.30.4-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.30.2 lib/chef/monkey_patches/numeric.rb
chef-10.30.2-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.30.2.rc.0-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.30.2.rc.0 lib/chef/monkey_patches/numeric.rb
chef-10.30.0.rc.2-x86-mingw32 lib/chef/monkey_patches/numeric.rb
chef-10.30.0.rc.2 lib/chef/monkey_patches/numeric.rb