RKelly::JS::Base
# File lib/rkelly/js/string.rb, line 5 def create(*args) self.new(args.first || '') end
# 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
[Validate]
Generated with the Darkfish Rdoc Generator 2.