class Minjs::ECMA262::This
Class of ECMA262
‘this’ element
@see www.ecma-international.org/ecma-262 ECMA262
11.1.1
Public Class Methods
new()
click to toggle source
# File lib/minjs/ecma262/literal.rb, line 145 def initialize end
Public Instance Methods
==(obj)
click to toggle source
compare object
# File lib/minjs/ecma262/literal.rb, line 162 def ==(obj) self.class == obj.class end
deep_dup()
click to toggle source
duplicate object @see Base#deep_dup
# File lib/minjs/ecma262/literal.rb, line 150 def deep_dup self.class.new end
left_hand_side_exp?()
click to toggle source
@return [Boolean] true if expression is kind of LeftHandSideExpression.
# File lib/minjs/ecma262/literal.rb, line 173 def left_hand_side_exp? true 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 168 def to_js(options = {}) "this" end
traverse(parent) { |parent, self| ... }
click to toggle source
Traverses this children and itself with given block.
@see Base#traverse
# File lib/minjs/ecma262/literal.rb, line 157 def traverse(parent, &block) yield parent, self end