class Gammo::XPath::AST::Value

Class for representing any value in Gammo::XPath internally. This should not referred from end users, should be converted to primitive classes or Gammo::XPath::NodeSet. @!visibility private

Attributes

value[R]

Public Class Methods

new(value) click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 11
def initialize(value)
  @value = value
end

Public Instance Methods

bool?() click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 31
def bool?
  false
end
evaluate(context) click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 15
def evaluate(context)
  self
end
node_set?() click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 19
def node_set?
  false
end
number?() click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 23
def number?
  false
end
string?() click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 27
def string?
  false
end
to_node_set(context) click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 39
def to_node_set(context)
  XPath::NodeSet.new
end
to_node_set_value(context) click to toggle source
# File lib/gammo/xpath/ast/value.rb, line 35
def to_node_set_value(context)
  Value::NodeSet.new(to_node_set(context))
end