Class: Glaemscribe::API::Macro

Inherits:
Object
  • Object
show all
Defined in:
lib/api/macro.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_namesObject (readonly)

Returns the value of attribute arg_names.



26
27
28
# File 'lib/api/macro.rb', line 26

def arg_names
  @arg_names
end

#modeObject (readonly)

Returns the value of attribute mode.



26
27
28
# File 'lib/api/macro.rb', line 26

def mode
  @mode
end

#nameObject (readonly)

Returns the value of attribute name.



26
27
28
# File 'lib/api/macro.rb', line 26

def name
  @name
end

#root_code_blockObject (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_groupObject (readonly)

Returns the value of attribute rule_group.



26
27
28
# File 'lib/api/macro.rb', line 26

def rule_group
  @rule_group
end