Class: Glaemscribe::API::IfTree::CodeBlock
- Inherits:
-
Object
- Object
- Glaemscribe::API::IfTree::CodeBlock
- Defined in:
- lib/api/if_tree.rb
Instance Attribute Summary collapse
-
#parent_if_cond ⇒ Object
Returns the value of attribute parent_if_cond.
-
#terms ⇒ Object
Returns the value of attribute terms.
Instance Method Summary collapse
-
#initialize(parent_if_cond = nil) ⇒ CodeBlock
constructor
A new instance of CodeBlock.
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_cond ⇒ Object
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 |
#terms ⇒ Object
Returns the value of attribute terms.
87 88 89 |
# File 'lib/api/if_tree.rb', line 87 def terms @terms end |