Class: Minjs::ECMA262::ExpLtEq
- Inherits:
-
Expression
- Object
- Base
- Expression
- Minjs::ECMA262::ExpLtEq
- Includes:
- BinaryOperation
- Defined in:
- lib/minjs/ecma262/expression.rb
Overview
Class of the Less-than-or-equal operator expression element.
Instance Attribute Summary
Attributes included from BinaryOperation
Attributes inherited from Base
Instance Method Summary collapse
-
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
-
#initialize(val, val2) ⇒ ExpLtEq
constructor
A new instance of ExpLtEq.
-
#priority ⇒ Fixnum
Expression priority.
-
#sym ⇒ Object
symbol of expression.
Methods included from BinaryOperation
#==, #add_paren, #deep_dup, #remove_paren, #replace, #to_js, #traverse
Methods inherited from Expression
#left_hand_side_exp?, #reduce, #side_effect?
Methods inherited from Base
#==, #add_remove_paren, #concat, #deep_dup, #replace, #to_js, #traverse
Constructor Details
#initialize(val, val2) ⇒ ExpLtEq
Returns a new instance of ExpLtEq.
1472 1473 1474 1475 |
# File 'lib/minjs/ecma262/expression.rb', line 1472 def initialize(val, val2) @val = val @val2 = val2 end |
Instance Method Details
#ecma262_typeof ⇒ Symbol
return results of ‘typeof’ operator.
1490 1491 1492 |
# File 'lib/minjs/ecma262/expression.rb', line 1490 def ecma262_typeof :boolean end |
#priority ⇒ Fixnum
Returns expression priority.
1483 1484 1485 |
# File 'lib/minjs/ecma262/expression.rb', line 1483 def priority PRIORITY_RELATIONAL end |
#sym ⇒ Object
symbol of expression
1478 1479 1480 |
# File 'lib/minjs/ecma262/expression.rb', line 1478 def sym "<=" end |