Class: Glaemscribe::API::IfTree::CodeLinesTerm
- Defined in:
- lib/api/if_tree.rb
Instance Attribute Summary collapse
-
#code_lines ⇒ Object
Returns the value of attribute code_lines.
Attributes inherited from Term
Instance Method Summary collapse
-
#initialize(parent_code_block) ⇒ CodeLinesTerm
constructor
A new instance of CodeLinesTerm.
- #inspect ⇒ Object
- #is_code_lines? ⇒ Boolean
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_lines ⇒ Object
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
#inspect ⇒ Object
115 116 117 |
# File 'lib/api/if_tree.rb', line 115 def inspect "#{prefix} CODE LINES (#{@code_lines.count})" end |
#is_code_lines? ⇒ Boolean
112 113 114 |
# File 'lib/api/if_tree.rb', line 112 def is_code_lines? true end |