Sha256: 0f166c854ad923308525e69341b0ca10d957530a570f32df3288329e5c77fd5b

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

require 'support/delegated'

module V8
  class Number
    include Comparable
    include Delegated

    def <=>(other)
      to_f <=> other
    end

    def delegate
      to_f
    end
  end # Number
end # V8

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mustang-0.1.1 lib/v8/number.rb
mustang-0.1.0 lib/v8/number.rb