lib/ruote/exp/ro_attributes.rb
# 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 has_attribute(*args)
      args.each { |a| a = a.to_s; return a if attributes[a] != nil }
      nil
    end
def has_attribute ( * args ) args . each { | a | a = a . to_s ; return a if attributes [ a ] != nil } nil 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 .
args