class Minjs::ECMA262::SingleLineComment
Class of ECMA262
SingleLineComment
Element
Public Class Methods
new(comment)
click to toggle source
# File lib/minjs/ecma262/literal.rb, line 1099 def initialize(comment) @comment = comment end
Public Instance Methods
==(obj)
click to toggle source
compare object
# File lib/minjs/ecma262/literal.rb, line 1110 def ==(obj) self.class == obj.class and @comment == obj.comment end
to_js(options)
click to toggle source
Returns a ECMAScript string containg the representation of element. @see Base#to_js
# File lib/minjs/ecma262/literal.rb, line 1117 def to_js(options) "//#{@comment}" end
traverse(parent, &block)
click to toggle source
Traverses this children and itself with given block.
@see Base#traverse
# File lib/minjs/ecma262/literal.rb, line 1106 def traverse(parent, &block) end
ws?()
click to toggle source
true if literal is white space
# File lib/minjs/ecma262/literal.rb, line 1122 def ws? true end