Obtain this attribute declaration’s child attribute(s). It will always be nil.
# File lib/libxml/attr_decl.rb, line 12 def child nil end
Returns whether this attribute declaration has child attributes.
# File lib/libxml/attr_decl.rb, line 21 def child? not self.children.nil? end
Determine whether this attribute declaration is associated with an XML::Document.
# File lib/libxml/attr_decl.rb, line 30 def doc? not self.doc.nil? end
Determine whether there is a next attribute declaration.
# File lib/libxml/attr_decl.rb, line 38 def next? not self.next.nil? end
Returns this attribute declaration’s node type name.
# File lib/libxml/attr_decl.rb, line 62 def node_type_name if node_type == Node::ATTRIBUTE_DECL 'attribute declaration' else raise(UnknownType, "Unknown node type: %n", node.node_type); end end
Determine whether this attribute declaration has a parent .
# File lib/libxml/attr_decl.rb, line 46 def parent? not self.parent.nil? end
Determine whether there is a previous attribute declaration.
# File lib/libxml/attr_decl.rb, line 54 def prev? not self.prev.nil? end
Returns a string representation of this attribute declaration.
# File lib/libxml/attr_decl.rb, line 74 def to_s "#{name} = #{value}" end