Class: SbuilderSexp::Conditional
Instance Method Summary
collapse
#statement_label
Methods inherited from Statement
#find_labelnode, #get_statement, #node_value, #statement_label, #statement_val, #statements, #traverse
#node_type, #node_value, #recursive_inject, #recursive_inject_parent, #recursive_select, #value
Instance Method Details
#condition ⇒ Object
997
998
999
|
# File 'lib/parser/parser_nodes.rb', line 997
def condition
recursive_select( SbuilderSexp::Expression).first
end
|
#if_not_true ⇒ Object
1009
1010
1011
|
# File 'lib/parser/parser_nodes.rb', line 1009
def if_not_true
return true_or_else[1] if true_or_else.length == 2
end
|
#if_true ⇒ Object
1005
1006
1007
|
# File 'lib/parser/parser_nodes.rb', line 1005
def if_true
true_or_else.first
end
|
#true_or_else ⇒ Object
1001
1002
1003
|
# File 'lib/parser/parser_nodes.rb', line 1001
def true_or_else
recursive_select( SbuilderSexp::Statement)
end
|