class LibXML::XML::Attr

def parent?

Determine whether this attribute has a parent.

attr.parent? -> (true|false)
call-seq:
def parent?
  not self.parent.nil?
end