Module: Moxml::EntityReference
- Includes:
- Node
- Defined in:
- lib/moxml/entity_reference.rb
Constant Summary
NodeBehavior::TYPES
Constants included
from XmlUtils
XmlUtils::VALID_ELEMENT_NAMES
Instance Attribute Summary
Attributes included from NodeBehavior
#context, #native, #parent_node
Instance Method Summary
collapse
Methods included from Node
adapter, contract_module, contract_modules, node_type_map, wrap
#adapter, #add_child, #add_next_sibling, #add_previous_sibling, #after, #ancestors, #at_xpath, #before, #blank?, #children, #clear_native_memo!, #descendants, #digest, #document, #dup, #each, #each_node, #entity_bearing?, #find, #find_all, #first_child, #following_siblings, #has_children?, #initialize, #invalidate_namespace_cache!, #last_child, #line_number, #materialize, #materialize_fields, #namespace, #namespaces, #next_sibling, #outer_xml, #parent, #path, #preceding_siblings, #previous_sibling, #prime_contract, #refresh_native!, #remove, #replace, #source_position, #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
Instance Method Details
#==(other) ⇒ Object
23
24
25
|
# File 'lib/moxml/entity_reference.rb', line 23
def ==(other)
self.class == other.class && @native == other.native
end
|
#content ⇒ Object
7
8
9
|
# File 'lib/moxml/entity_reference.rb', line 7
def content
""
end
|
#identifier ⇒ Object
27
28
29
|
# File 'lib/moxml/entity_reference.rb', line 27
def identifier
name
end
|
#name ⇒ Object
15
16
17
|
# File 'lib/moxml/entity_reference.rb', line 15
def name
adapter.entity_reference_name(@native)
end
|
#text ⇒ Object
11
12
13
|
# File 'lib/moxml/entity_reference.rb', line 11
def text
""
end
|
#to_xml ⇒ Object
19
20
21
|
# File 'lib/moxml/entity_reference.rb', line 19
def to_xml(*)
"&#{name};"
end
|