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-11.4.4 lib/chef/monkey_patches/numeric.rb
chef-11.4.2 lib/chef/monkey_patches/numeric.rb
microwave-11.400.8 lib/chef/monkey_patches/numeric.rb
microwave-11.400.7 lib/chef/monkey_patches/numeric.rb
microwave-11.400.6 lib/chef/monkey_patches/numeric.rb
microwave-11.400.5 lib/chef/monkey_patches/numeric.rb
microwave-11.400.4 lib/chef/monkey_patches/numeric.rb
chef-10.24.0 lib/chef/monkey_patches/numeric.rb
chef-10.24.0.rc.2 lib/chef/monkey_patches/numeric.rb
chef-10.24.0.rc.1 lib/chef/monkey_patches/numeric.rb
chef-10.24.0.rc.0 lib/chef/monkey_patches/numeric.rb
chef-10.22.0 lib/chef/monkey_patches/numeric.rb
chef-11.4.0 lib/chef/monkey_patches/numeric.rb
chef-10.22.0.rc.0 lib/chef/monkey_patches/numeric.rb
chef-11.4.0.rc.0 lib/chef/monkey_patches/numeric.rb
chef-10.20.0 lib/chef/monkey_patches/numeric.rb
chef-10.18.4.rc.2 lib/chef/monkey_patches/numeric.rb
chef-10.18.4.rc.1 lib/chef/monkey_patches/numeric.rb
chef-11.0.0.beta.2 lib/chef/monkey_patches/numeric.rb
chef-11.2.0 lib/chef/monkey_patches/numeric.rb