Parent

Methods

Class Index [+]

Quicksearch

RKelly::JS::Object

Attributes

value[R]

(Not documented)

Public Class Methods

create(*args) click to toggle source

(Not documented)

# File lib/rkelly/js/object.rb, line 6
        def create(*args)
          arg = args.first
          return self.new if arg.nil? || arg == :undefined
          case arg
          when true, false
            JS::Boolean.new(arg)
          when Numeric
            JS::Number.new(arg)
          when ::String
            JS::String.new(arg)
          else
            self.new(arg)
          end
        end
new(*args) click to toggle source

(Not documented)

# File lib/rkelly/js/object.rb, line 22
      def initialize(*args)
        super()
        self['prototype'] = JS::ObjectPrototype.new
        self['valueOf'] = lambda { args.first || self }
        self['valueOf'].function = lambda { args.first || self }
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.