Class: Glaemscribe::API::Macro
Instance Attribute Summary collapse
-
#arg_names ⇒ Object
readonly
Returns the value of attribute arg_names.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#root_code_block ⇒ Object
readonly
Returns the value of attribute root_code_block.
-
#rule_group ⇒ Object
readonly
Returns the value of attribute rule_group.
Instance Method Summary collapse
-
#initialize(rule_group, name, arg_names) ⇒ Macro
constructor
A new instance of Macro.
Constructor Details
#initialize(rule_group, name, arg_names) ⇒ Macro
Returns a new instance of Macro.
30 31 32 33 34 35 36 |
# File 'lib/api/macro.rb', line 30 def initialize(rule_group,name,arg_names) @rule_group = rule_group @mode = rule_group.mode @name = name @arg_names = arg_names @root_code_block = IfTree::CodeBlock.new end |
Instance Attribute Details
#arg_names ⇒ Object (readonly)
Returns the value of attribute arg_names.
26 27 28 |
# File 'lib/api/macro.rb', line 26 def arg_names @arg_names end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
26 27 28 |
# File 'lib/api/macro.rb', line 26 def mode @mode end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
26 27 28 |
# File 'lib/api/macro.rb', line 26 def name @name end |
#root_code_block ⇒ Object (readonly)
Returns the value of attribute root_code_block.
28 29 30 |
# File 'lib/api/macro.rb', line 28 def root_code_block @root_code_block end |
#rule_group ⇒ Object (readonly)
Returns the value of attribute rule_group.
26 27 28 |
# File 'lib/api/macro.rb', line 26 def rule_group @rule_group end |