Class: VCDOM::XPath::XPathResult::ResultSingleNode

Inherits:
VCDOM::XPath::XPathResult show all
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

Methods inherited from VCDOM::XPath::XPathResult

#boolean_value, #invalid_iterator_state, #iterate_next, #number_value, #snapshot_item, #snapshot_length, #string_value

Constructor Details

#initialize(node, type) ⇒ ResultSingleNode

:nodoc:



82
83
84
85
# File 'lib/vcdom/xpath/xpath_result.rb', line 82

def initialize( node, type ) # :nodoc:
  super( node )
  @type = type
end

Instance Method Details

#result_typeObject



86
# File 'lib/vcdom/xpath/xpath_result.rb', line 86

def result_type; @type end

#single_node_valueObject



87
# File 'lib/vcdom/xpath/xpath_result.rb', line 87

def single_node_value; @value end