Parent

Included Modules

LibXML::XML::AttrDecl

Public Instance Methods

child → nil click to toggle source

Obtain this attribute declaration’s child attribute(s). It will always be nil.

    # File lib/libxml/attr_decl.rb, line 13
13:       def child
14:         nil
15:       end
child? → (true|false) click to toggle source

Returns whether this attribute declaration has child attributes.

    # File lib/libxml/attr_decl.rb, line 22
22:       def child?
23:         not self.children.nil?
24:       end
doc? → (true|false) click to toggle source

Determine whether this attribute declaration is associated with an XML::Document.

    # File lib/libxml/attr_decl.rb, line 31
31:       def doc?
32:         not self.doc.nil?
33:       end
next? → (true|false) click to toggle source

Determine whether there is a next attribute declaration.

    # File lib/libxml/attr_decl.rb, line 39
39:       def next?
40:         not self.next.nil?
41:       end
node_type_name → 'attribute declaration' click to toggle source

Returns this attribute declaration’s node type name.

    # File lib/libxml/attr_decl.rb, line 63
63:       def node_type_name
64:         if node_type == Node::ATTRIBUTE_DECL
65:           'attribute declaration'
66:         else
67:           raise(UnknownType, "Unknown node type: %n", node.node_type);
68:         end
69:       end
parent? → (true|false) click to toggle source

Determine whether this attribute declaration has a parent .

    # File lib/libxml/attr_decl.rb, line 47
47:       def parent?
48:         not self.parent.nil?
49:       end
prev? → (true|false) click to toggle source

Determine whether there is a previous attribute declaration.

    # File lib/libxml/attr_decl.rb, line 55
55:       def prev?
56:         not self.prev.nil?
57:       end
to_s → string click to toggle source

Returns a string representation of this attribute declaration.

    # File lib/libxml/attr_decl.rb, line 75
75:       def to_s
76:         "#{name} = #{value}"
77:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.