class REXML::Element

def has_attributes?


b.has_attributes? # => false
a.has_attributes? # => true
a, b = *d.root
d = REXML::Document.new('')

Returns +true+ if the element has attributes, +false+ otherwise:

has_attributes? -> true or false
:call-seq:
def has_attributes?
  return !@attributes.empty?
end