Class: Chelsy::Operator::Prefix
- Defined in:
- lib/chelsy/ast.rb
Direct Known Subclasses
Address, BitwiseNot, Cast, Dereference, Minus, Not, Plus, PrefixDecrement, PrefixIncrement
Instance Attribute Summary
Attributes inherited from Unary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(operand, **rest) ⇒ Prefix
constructor
A new instance of Prefix.
Methods inherited from Base
Constructor Details
#initialize(operand, **rest) ⇒ Prefix
Returns a new instance of Prefix.
558 559 560 |
# File 'lib/chelsy/ast.rb', line 558 def initialize(operand, **rest) super Syntax::Expr.ensure(operand), **rest end |