Class: Lutaml::Xml::NokogiriElement
- Inherits:
-
AdapterElement
- Object
- XmlElement
- AdapterElement
- Lutaml::Xml::NokogiriElement
- Defined in:
- lib/lutaml/xml/nokogiri/element.rb
Constant Summary
Constants inherited from AdapterElement
Constants inherited from XmlElement
XmlElement::CDATA_NODE_NAME, XmlElement::EMPTY_CHILDREN_ARRAY, XmlElement::EMPTY_NAMESPACES, XmlElement::NODE_TYPES, XmlElement::TEXT_NODE_NAME, XmlElement::XMLNS_PREFIX, XmlElement::XML_NAMESPACE_URI
Instance Attribute Summary
Attributes inherited from XmlElement
#adapter_node, #attributes, #children, #namespace_prefix, #namespace_prefix_explicit, #node_type, #order_cache, #parent_document, #processing_instructions
Instance Method Summary collapse
-
#initialize(node, parent: nil, default_namespace: nil) ⇒ NokogiriElement
constructor
A new instance of NokogiriElement.
Methods inherited from AdapterElement
#build_xml, #inner_xml, #text, #text?, #to_xml
Methods inherited from XmlElement
#[], #add_namespace, #attribute_is_namespace?, #cdata, #cdata?, #cdata_children, #comment?, #default_namespace, detect_explicit_no_namespace, #document, #element?, #element_children, #element_children_index, #ensure_attribute_index, #ensure_children_index, #find_attribute_value, #find_child_by_name, #find_children_by_name, fpi?, fpi_to_urn, #name, #namespace, #namespace_scope_config, #namespace_uri, #namespaced_name, #namespaces, #nil_element?, #order, #original_namespace_uri, #original_xml_element, #own_namespaces, #pretty_print_instance_variables, #processing_instruction?, #root, #text, #text?, #text_children, #to_h, #unprefixed_name, #xml_declaration, #xml_namespace_prefix
Constructor Details
#initialize(node, parent: nil, default_namespace: nil) ⇒ NokogiriElement
Returns a new instance of NokogiriElement.
6 7 8 9 |
# File 'lib/lutaml/xml/nokogiri/element.rb', line 6 def initialize(node, parent: nil, default_namespace: nil) @raw_text = node.respond_to?(:raw_content) ? node.raw_content : nil if node.is_a?(Moxml::Text) super end |