Class: RLSL::Prism::IR::UnaryOp
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(operator, operand, type = nil) ⇒ UnaryOp
constructor
A new instance of UnaryOp.
Methods inherited from Node
Constructor Details
#initialize(operator, operand, type = nil) ⇒ UnaryOp
Returns a new instance of UnaryOp.
85 86 87 88 89 90 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 85 def initialize(operator, operand, type = nil) super() @operator = operator @operand = operand @type = type end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
81 82 83 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 81 def operand @operand end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
81 82 83 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 81 def operator @operator end |