Class: VCDOM::XPath::XPathResult::ResultNodesSnapshot
- Inherits:
-
VCDOM::XPath::XPathResult
- Object
- VCDOM::XPath::XPathResult
- VCDOM::XPath::XPathResult::ResultNodesSnapshot
- Defined in:
- lib/vcdom/xpath/xpath_result.rb
Constant Summary
Constants inherited from VCDOM::XPath::XPathResult
ANY_TYPE, ANY_UNORDERED_NODE_TYPE, BOOLEAN_TYPE, FIRST_ORDERED_NODE_TYPE, NUMBER_TYPE, ORDERED_NODE_ITERATOR_TYPE, ORDERED_NODE_SNAPSHOT_TYPE, STRING_TYPE, UNORDERED_NODE_ITERATOR_TYPE, UNORDERED_NODE_SNAPSHOT_TYPE
Instance Method Summary collapse
-
#initialize(nodes, type) ⇒ ResultNodesSnapshot
constructor
:nodoc:.
- #result_type ⇒ Object
- #snapshot_item(index) ⇒ Object (also: #[])
- #snapshot_length ⇒ Object
Methods inherited from VCDOM::XPath::XPathResult
#boolean_value, #invalid_iterator_state, #iterate_next, #number_value, #single_node_value, #string_value
Constructor Details
#initialize(nodes, type) ⇒ ResultNodesSnapshot
:nodoc:
90 91 92 93 |
# File 'lib/vcdom/xpath/xpath_result.rb', line 90 def initialize( nodes, type ) # :nodoc: super( nodes ) @type = type end |
Instance Method Details
#result_type ⇒ Object
94 |
# File 'lib/vcdom/xpath/xpath_result.rb', line 94 def result_type; @type end |
#snapshot_item(index) ⇒ Object Also known as: []
98 99 100 |
# File 'lib/vcdom/xpath/xpath_result.rb', line 98 def snapshot_item( index ) @value[index] end |
#snapshot_length ⇒ Object
95 96 97 |
# File 'lib/vcdom/xpath/xpath_result.rb', line 95 def snapshot_length @value.length end |