lib/ruote/exp/ro_attributes.rb
def lval(vals, vars, flds, att_options)

      if k = has_att(*vals)

        attribute(k, h.applied_workitem, att_options)

      elsif k = has_att(*vars)

        k = attribute(k, h.applied_workitem, att_options)
        lookup_variable(k)

      elsif k = has_att(*flds)

        k = attribute(k, h.applied_workitem, att_options)
        Ruote.lookup(h.applied_workitem['fields'], k)

      else

        nil
      end
    end
# Given a list of attribute names, returns the first attribute name for
# which there is a value.
#
Given a list of attribute names, returns the first attribute name for
which there is a value.
Given a list of attribute names returns the first attribute name for which there is a value .
def lval(vals, vars, flds, att_options)
      if k = has_att(*vals)
        attribute(k, h.applied_workitem, att_options)
      elsif k = has_att(*vars)
        k = attribute(k, h.applied_workitem, att_options)
        lookup_variable(k)
      elsif k = has_att(*flds)
        k = attribute(k, h.applied_workitem, att_options)
        Ruote.lookup(h.applied_workitem['fields'], k)
      else
        nil
      end
    end
def lval ( vals , vars , flds , att_options ) if k = has_att ( * vals ) attribute ( k , h . applied_workitem , att_options ) elsif k = has_att ( * vars ) k = attribute ( k , h . applied_workitem , att_options ) lookup_variable ( k ) elsif k = has_att ( * flds ) k = attribute ( k , h . applied_workitem , att_options ) Ruote . lookup ( h . applied_workitem [ 'fields' ] , k ) else nil end end
Given a list of attribute names, returns the first attribute name for
which there is a value.
Given a list of attribute names returns the first attribute name for which there is a value .
vals
vars
flds
att_options