Parent

Methods

Class Index [+]

Quicksearch

RKelly::JS::String

Public Class Methods

create(*args) click to toggle source

(Not documented)

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

(Not documented)

# File lib/rkelly/js/string.rb, line 10
      def initialize(value)
        super()
        self['valueOf'] = value
        self['valueOf'].function = lambda { value }
        self['toString'] = value
        self['fromCharCode'] = unbound_method(:fromCharCode) { |*args|
          args.map { |x| x.chr }.join
        }
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.