Sha256: 0a916613c52ecc04804cb308e571476c28dee27ca3fa292f980fb1e779274698

Contents?: true

Size: 136 Bytes

Versions: 4

Compression:

Stored size: 136 Bytes

Contents

module Xi
  module CoerceToRational
    def /(o)
      super(o.to_r)
    end
  end
end

class Fixnum
  prepend Xi::CoerceToRational
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xi-lang-0.1.4 lib/xi/core_ext/fixnum.rb
xi-lang-0.1.3 lib/xi/core_ext/fixnum.rb
xi-lang-0.1.2 lib/xi/core_ext/fixnum.rb
xi-lang-0.1.0 lib/xi/core_ext/fixnum.rb