Class: Glaemscribe::API::IfTree::IfCond

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line, parent_if_term, expression) ⇒ IfCond

Returns a new instance of IfCond.



29
30
31
32
# File 'lib/api/if_tree.rb', line 29

def initialize(line, parent_if_term, expression)
  @parent_if_term     = parent_if_term
  @expression         = expression
end

Instance Attribute Details

#child_code_blockObject

Returns the value of attribute child_code_block.



28
29
30
# File 'lib/api/if_tree.rb', line 28

def child_code_block
  @child_code_block
end

#expressionObject

Returns the value of attribute expression.



28
29
30
# File 'lib/api/if_tree.rb', line 28

def expression
  @expression
end

#lineObject

Returns the value of attribute line.



28
29
30
# File 'lib/api/if_tree.rb', line 28

def line
  @line
end

#parent_if_termObject

Returns the value of attribute parent_if_term.



28
29
30
# File 'lib/api/if_tree.rb', line 28

def parent_if_term
  @parent_if_term
end