Sha256: 7e3dd3ba76b4015cada97b30eaae14d8b9e6de28c1bf84ae1b564e86e332bf32

Contents?: true

Size: 230 Bytes

Versions: 3

Compression:

Stored size: 230 Bytes

Contents

require 'rbkb/extends/common'

module Rbkb
  module Extends
    module Float
      def log2
        Math.log(self)/Math.log(2)
      end
    end
  end
end

# float is a weird "Type"
class Float
  include Rbkb::Extends::Float
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbkb-0.7.2 lib/rbkb/extends/float.rb
rbkb-0.7.1 lib/rbkb/extends/float.rb
rbkb-0.7.0 lib/rbkb/extends/float.rb