Class: Makiri::Text
- Defined in:
- lib/makiri/text.rb,
ext/makiri/makiri.c
Overview
A text node.
Class Method Summary collapse
-
.new(content, document) ⇒ Makiri::Text
Create a detached text node with
contentowned bydocument(Nokogiri-style constructor; delegates to Document#create_text_node).
Methods inherited from Node
#<<, #==, #[], #[]=, #add_child, #add_class, #add_next_sibling, #add_previous_sibling, #after, #ancestors, #append_class, #at, #at_css, #at_xpath, #attribute, #attribute?, #attribute_nodes, #attributes, #before, #blank?, #child, #children, #classes, #comment?, #content, #content=, #css, #delete, #document, #document?, #document_fragment?, #element?, #element_children, #elements, #eql?, #first_element_child, #hash, #inner_html, #inner_html=, #inner_text, #inspect, #key?, #keys, #last_element_child, #line, #matches?, #name, #name=, #next, #next_element, #next_sibling, #node_type, #outer_html, #outer_html=, #parent, #parse, #path, #previous, #previous_element, #previous_sibling, #processing_instruction?, #remove, #remove_class, #replace, #root, #search, #set_attribute, #text, #text?, #to_h, #to_html, #to_s, #traverse, #unlink, #value, #values, #xpath
Class Method Details
.new(content, document) ⇒ Makiri::Text
Create a detached text node with content owned by document (Nokogiri-style constructor; delegates to Document#create_text_node).
12 13 14 |
# File 'lib/makiri/text.rb', line 12 def self.new(content, document) document.create_text_node(content) end |