Sha256: 4783a9070f721a5eab480da1444557f592c4fa03694deda96cfe068dd5014a3c

Contents?: true

Size: 186 Bytes

Versions: 22

Compression:

Stored size: 186 Bytes

Contents

module ::Kernel
  def Rational(numerator, denominator = 1)
    ::Rational.convert(numerator, denominator)
  end
end

class ::String
  def to_r
    ::Rational.from_string(self)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 opal/corelib/rational/base.rb
opal-1.8.2 opal/corelib/rational/base.rb
opal-1.8.1 opal/corelib/rational/base.rb
opal-1.8.0 opal/corelib/rational/base.rb
opal-1.8.0.beta1 opal/corelib/rational/base.rb
opal-1.7.4 opal/corelib/rational/base.rb
opal-1.8.0.alpha1 opal/corelib/rational/base.rb
opal-1.7.3 opal/corelib/rational/base.rb
opal-1.7.2 opal/corelib/rational/base.rb
opal-1.7.1 opal/corelib/rational/base.rb
opal-1.7.0 opal/corelib/rational/base.rb
opal-1.7.0.rc1 opal/corelib/rational/base.rb
opal-1.6.1 opal/corelib/rational/base.rb
opal-1.6.0 opal/corelib/rational/base.rb
opal-1.6.0.rc1 opal/corelib/rational/base.rb
opal-1.6.0.alpha1 opal/corelib/rational/base.rb
opal-1.5.1 opal/corelib/rational/base.rb
opal-1.5.0 opal/corelib/rational/base.rb
opal-1.5.0.rc1 opal/corelib/rational/base.rb
opal-1.4.1 opal/corelib/rational/base.rb