Class: Leptris::XML::ProcessingInstruction
- Inherits:
-
Node
- Object
- Node
- Leptris::XML::ProcessingInstruction
show all
- Defined in:
- lib/leptris/xml/processing_instruction.rb
Instance Attribute Summary
Attributes inherited from Node
#c_ptr, #document
Instance Method Summary
collapse
Methods inherited from Node
#<=>, #==, #cdata?, #child, #children, #comment?, #css_path, #dup, #element?, #element_children, #first_element_child, #initialize, #inspect, #last_element_child, #line, #next_element, #next_sibling, #parent, #path, #previous_element, #previous_sibling, #processing_instruction?, #text?, #traverse, #type, #unlink, wrap
Methods included from Searchable
#at, #at_css, #at_xpath, #css, #search, #xpath
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
#name ⇒ Object
Also known as:
target
4
5
6
|
# File 'lib/leptris/xml/processing_instruction.rb', line 4
def name
Leptris::XML::FFI.leptris_pi_node_get_target(@c_ptr)
end
|
#target=(new_target) ⇒ Object