Parent

Methods

Class Index [+]

Quicksearch

RKelly::JS::Boolean

Public Class Methods

create(*args) click to toggle source

(Not documented)

# File lib/rkelly/js/boolean.rb, line 5
        def create(*args)
          return false if args.length == 0
          self.new(args.first)
        end
new(*args) click to toggle source

(Not documented)

# File lib/rkelly/js/boolean.rb, line 10
      def initialize(*args)
        super()
        value = args.first.nil? ? false : args.first
        self['valueOf'] = value
        self['valueOf'].function = lambda {
          value
        }
        self['toString'] = args.first.to_s
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.