Class: Chelsy::Operator::Defined
- Defined in:
- lib/chelsy/ast.rb
Overview
defined unary operator in conditional macro.
Instance Attribute Summary
Attributes inherited from Unary
Attributes inherited from Element
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(operand, **rest) ⇒ Defined
constructor
A new instance of Defined.
Methods inherited from Base
Constructor Details
#initialize(operand, **rest) ⇒ Defined
Returns a new instance of Defined.
708 709 710 |
# File 'lib/chelsy/ast.rb', line 708 def initialize(operand, **rest) super Syntax::Ident.ensure(operand), **rest end |
Class Method Details
.operator ⇒ Object
706 |
# File 'lib/chelsy/ast.rb', line 706 def self.operator; :"defined" end |