Class: Leptris::XML::ProcessingInstruction
- Defined in:
- lib/leptris/xml/processing_instruction.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #content ⇒ Object
- #data=(new_data) ⇒ Object
- #name ⇒ Object (also: #target)
- #target=(new_target) ⇒ Object
Methods inherited from Node
#<=>, #==, #cdata?, #child, #children, #comment?, #css_path, #dup, #element?, #element_children, #ensure_writable!, #first_element_child, #initialize, #inner_text, #inspect, #last_element_child, #line, #next_element, #next_sibling, #parent, #path, #previous_element, #previous_sibling, #processing_instruction?, #text, #text?, #traverse, #type, #unlink, wrap
Methods included from Searchable
#at, #at_css, #at_xpath, #css, #search, wrap_xpath_result, #xpath
Constructor Details
This class inherits a constructor from Leptris::XML::Node
Instance Method Details
#content ⇒ Object
9 10 11 |
# File 'lib/leptris/xml/processing_instruction.rb', line 9 def content Leptris::XML::FFI.leptris_pi_node_get_data(@c_ptr).to_s end |
#data=(new_data) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/leptris/xml/processing_instruction.rb', line 20 def data=(new_data) ensure_writable! Leptris::XML::FFI.check_status( Leptris::XML::FFI.leptris_pi_node_set_data(@c_ptr, new_data.to_s)) new_data end |