Class: Glaemscribe::API::IfTree::CodeBlock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent_if_cond = nil) ⇒ CodeBlock

Returns a new instance of CodeBlock.



88
89
90
91
# File 'lib/api/if_tree.rb', line 88

def initialize(parent_if_cond = nil)
  @parent_if_cond = parent_if_cond
  @terms          = []
end

Instance Attribute Details

#parent_if_condObject

Returns the value of attribute parent_if_cond.



87
88
89
# File 'lib/api/if_tree.rb', line 87

def parent_if_cond
  @parent_if_cond
end

#termsObject

Returns the value of attribute terms.



87
88
89
# File 'lib/api/if_tree.rb', line 87

def terms
  @terms
end