Class: Glaemscribe::API::IfTree::CodeLinesTerm

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_macro_deploy?, #is_pre_post_processor_operators?, #offset, #prefix

Constructor Details

#initialize(parent_code_block) ⇒ CodeLinesTerm

Returns a new instance of CodeLinesTerm.



108
109
110
111
# File 'lib/api/if_tree.rb', line 108

def initialize(parent_code_block)
  super(parent_code_block)
  @code_lines      = []
end

Instance Attribute Details

#code_linesObject

Returns the value of attribute code_lines.



107
108
109
# File 'lib/api/if_tree.rb', line 107

def code_lines
  @code_lines
end

Instance Method Details

#inspectObject



115
116
117
# File 'lib/api/if_tree.rb', line 115

def inspect
  "#{prefix} CODE LINES (#{@code_lines.count})"
end

#is_code_lines?Boolean

Returns:

  • (Boolean)


112
113
114
# File 'lib/api/if_tree.rb', line 112

def is_code_lines?
  true
end