Class: Chelsy::Directive::Pragma

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

Overview

#pragma

Direct Known Subclasses

StdcPragma

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pragma, **rest) ⇒ Pragma

Returns a new instance of Pragma.



1268
1269
1270
1271
# File 'lib/chelsy/ast.rb', line 1268

def initialize(pragma, **rest)
  @pragma = Chelsy.immutable_stringify(pragma)
  super **rest
end

Instance Attribute Details

#pragmaObject (readonly)

Returns the value of attribute pragma.



1266
1267
1268
# File 'lib/chelsy/ast.rb', line 1266

def pragma
  @pragma
end