Class: Chelsy::Operator::Defined

Inherits:
Unary show all
Defined in:
lib/chelsy/ast.rb

Overview

defined unary operator in conditional macro.

Instance Attribute Summary

Attributes inherited from Unary

#operand

Attributes inherited from Element

#fragments, #post_fragments

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

precedence

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

.operatorObject



706
# File 'lib/chelsy/ast.rb', line 706

def self.operator; :"defined" end