Class: Moxml::EntityReference
- Inherits:
-
Node
- Object
- Node
- Moxml::EntityReference
show all
- Defined in:
- lib/moxml/entity_reference.rb
Constant Summary
Constants inherited
from Node
Node::TYPES
Instance Attribute Summary
Attributes inherited from Node
#context, #native
Instance Method Summary
collapse
Methods inherited from Node
#[], adapter, #add_child, #add_next_sibling, #add_previous_sibling, #at_xpath, #children, #clone, #document, #each_node, #find, #find_all, #first_child, #has_children?, #initialize, #last_child, #namespace, #namespaces, #next_sibling, #parent, #previous_sibling, #remove, #replace, wrap, #xpath
Methods included from XmlUtils
#encode_entities, #normalize_xml_value, #validate_comment_content, #validate_declaration_encoding, #validate_declaration_standalone, #validate_declaration_version, #validate_element_name, #validate_entity_reference_name, #validate_pi_target, #validate_prefix, #validate_uri
Constructor Details
This class inherits a constructor from Moxml::Node
Instance Method Details
#==(other) ⇒ Object
21
22
23
|
# File 'lib/moxml/entity_reference.rb', line 21
def ==(other)
self.class == other.class && @native == other.native
end
|
#content ⇒ Object
5
6
7
|
# File 'lib/moxml/entity_reference.rb', line 5
def content
""
end
|
#identifier ⇒ Object
25
26
27
|
# File 'lib/moxml/entity_reference.rb', line 25
def identifier
name
end
|
#name ⇒ Object
13
14
15
|
# File 'lib/moxml/entity_reference.rb', line 13
def name
adapter.entity_reference_name(@native)
end
|
#text ⇒ Object
9
10
11
|
# File 'lib/moxml/entity_reference.rb', line 9
def text
""
end
|
#to_xml ⇒ Object
17
18
19
|
# File 'lib/moxml/entity_reference.rb', line 17
def to_xml(*)
"&#{name};"
end
|