Module: ElasticityGrammar::BooleanExp3

Defined in:
lib/opennebula/flow/grammar.rb

Instance Method Summary collapse

Instance Method Details

#result(role, vm_pool) ⇒ Object



154
155
156
157
158
159
160
161
162
# File 'lib/opennebula/flow/grammar.rb', line 154

def result(role, vm_pool)
    l_val, l_st = left.result(role, vm_pool)
    r_val, r_st = right.result(role, vm_pool)

    st = "#{l_st} #{op.text_value} #{r_st}"
    val = l_val || r_val

    return [val, st]
end