Class: XRay::JS::PrimaryExpression
- Inherits:
-
Expression
- Object
- Element
- Expression
- XRay::JS::PrimaryExpression
- Defined in:
- lib/js/struct.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(type, expr, position = nil) ⇒ PrimaryExpression
constructor
A new instance of PrimaryExpression.
- #node ⇒ Object
- #text ⇒ Object
Methods inherited from Expression
Methods inherited from Element
Constructor Details
#initialize(type, expr, position = nil) ⇒ PrimaryExpression
Returns a new instance of PrimaryExpression.
209 210 211 |
# File 'lib/js/struct.rb', line 209 def initialize(type, expr, position = nil) super type, expr, nil, position end |
Instance Method Details
#node ⇒ Object
217 218 219 |
# File 'lib/js/struct.rb', line 217 def node left end |
#text ⇒ Object
213 214 215 |
# File 'lib/js/struct.rb', line 213 def text node.text end |