Module: ElasticityGrammar::BooleanExp1

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

Instance Method Summary collapse

Instance Method Details

#result(role, vm_pool) ⇒ Object



120
121
122
123
124
125
126
127
128
# File 'lib/opennebula/flow/grammar.rb', line 120

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