Parent

Methods

Class Index [+]

Quicksearch

RKelly::JS::Number

Public Class Methods

create(*args) click to toggle source

(Not documented)

# File lib/rkelly/js/number.rb, line 5
        def create(*args)
          self.new(args.first || 0)
        end
new(value = 0) click to toggle source

(Not documented)

# File lib/rkelly/js/number.rb, line 10
      def initialize(value = 0)
        super()
        self['MAX_VALUE'] = 1.797693134862315e+308
        self['MIN_VALUE'] = 1.0e-306
        self['NaN']       = JS::NaN.new
        self['POSITIVE_INFINITY'] = 1.0/0.0
        self['NEGATIVE_INFINITY'] = -1.0/0.0
        self['valueOf'] = lambda { value }
        self['toString'] = value.to_s
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.