Class: RLSL::Prism::IR::Parenthesized
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(expression) ⇒ Parenthesized
constructor
A new instance of Parenthesized.
Methods inherited from Node
Constructor Details
#initialize(expression) ⇒ Parenthesized
Returns a new instance of Parenthesized.
164 165 166 167 168 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 164 def initialize(expression) super() @expression = expression @type = expression&.type end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
160 161 162 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 160 def expression @expression end |