Class: LibXML::XML::AttrDecl

### Home Classes Methods

### In Files

- lib/libxml/attr_decl.rb

### Parent

Object

### Methods

- #child
- #child?
- #doc?
- #next?
- #node_type_name
- #parent?
- #prev?
- #to_s

### Included Modules

- Enumerable

### Class/Module Index

Quicksearch

- LibXML
- LibXML::XML
- LibXML::XML::Attr
- LibXML::XML::AttrDecl
- LibXML::XML::Attributes
- LibXML::XML::Document
- LibXML::XML::Error
- LibXML::XML::HTMLParser
- LibXML::XML::Namespace
- LibXML::XML::Namespaces
- LibXML::XML::Node
- LibXML::XML::Parser
- LibXML::XML::Reader
- LibXML::XML::SaxParser
- LibXML::XML::SaxParser::Callbacks
- LibXML::XML::SaxParser::VerboseCallbacks
- LibXML::XML::Schema
- LibXML::XML::Schema::Attribute
- LibXML::XML::Schema::Element
- LibXML::XML::Schema::Namespaces
- LibXML::XML::Schema::Type
- LibXML::XML::Schema::Types
- LibXML::XML::XPath
- LibXML::XML::XPath::Object
- Object

No matching classes.

# 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.