Class: Chelsy::Directive::Undef

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

Overview

#undef

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, **rest) ⇒ Undef

Returns a new instance of Undef.



1215
1216
1217
1218
# File 'lib/chelsy/ast.rb', line 1215

def initialize(name, **rest)
  @name = Syntax::Ident.ensure(name)
  super **rest
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



1213
1214
1215
# File 'lib/chelsy/ast.rb', line 1213

def name
  @name
end