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 12
def child
  nil
end
child? → (true|false) click to toggle source

Returns whether this attribute declaration has child attributes.

# File lib/libxml/attr_decl.rb, line 21
def child?
  not self.children.nil?
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 30
def doc?
  not self.doc.nil?
end
next? → (true|false) click to toggle source

Determine whether there is a next attribute declaration.

# File lib/libxml/attr_decl.rb, line 38
def next?
  not self.next.nil?
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 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
parent? → (true|false) click to toggle source

Determine whether this attribute declaration has a parent .

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

Determine whether there is a previous attribute declaration.

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

Returns a string representation of this attribute declaration.

# File lib/libxml/attr_decl.rb, line 74
def to_s
  "#{name} = #{value}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.