Class: Glaemscribe::API::IfTree::MacroDeployTerm

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

Instance Attribute Summary collapse

Attributes inherited from Term

#parent_code_block

Instance Method Summary collapse

Methods inherited from Term

#is_code_lines?, #is_pre_post_processor_operators?, #offset, #prefix

Constructor Details

#initialize(macro, line, parent_code_block, arg_value_expressions) ⇒ MacroDeployTerm

Returns a new instance of MacroDeployTerm.



122
123
124
125
126
127
# File 'lib/api/if_tree.rb', line 122

def initialize(macro, line, parent_code_block, arg_value_expressions)
  super(parent_code_block)
  @line                   = line
  @macro                  = macro
  @arg_value_expressions  = arg_value_expressions
end

Instance Attribute Details

#arg_value_expressionsObject

Returns the value of attribute arg_value_expressions.



121
122
123
# File 'lib/api/if_tree.rb', line 121

def arg_value_expressions
  @arg_value_expressions
end

#lineObject

Returns the value of attribute line.



121
122
123
# File 'lib/api/if_tree.rb', line 121

def line
  @line
end

#macroObject

Returns the value of attribute macro.



121
122
123
# File 'lib/api/if_tree.rb', line 121

def macro
  @macro
end

Instance Method Details

#inspectObject



131
132
133
# File 'lib/api/if_tree.rb', line 131

def inspect
  "#{prefix} MACRO DEPLOY (#{macro.name})"
end

#is_macro_deploy?Boolean

Returns:

  • (Boolean)


128
129
130
# File 'lib/api/if_tree.rb', line 128

def is_macro_deploy?
  true
end