From e7019ceb4c43e8ab347172c09c3f0bf01f9c0ebb Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 21 Aug 2014 19:06:14 +0200 Subject: [PATCH] Renamed context_node to function_node. --- lib/oga/xpath/evaluator.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/oga/xpath/evaluator.rb b/lib/oga/xpath/evaluator.rb index 66ed881..87fcc86 100644 --- a/lib/oga/xpath/evaluator.rb +++ b/lib/oga/xpath/evaluator.rb @@ -706,7 +706,7 @@ module Oga # @return [Oga::XML::NodeSet] # def on_call_local_name(context, expression = nil) - node = context_node(context, expression) + node = function_node(context, expression) return node.is_a?(XML::Element) ? node.name : '' end @@ -724,7 +724,7 @@ module Oga # @return [Oga::XML::NodeSet] # def on_call_namespace_uri(context, expression = nil) - node = context_node(context, expression) + node = function_node(context, expression) if node.is_a?(XML::Element) and node.namespace return node.namespace.uri @@ -764,7 +764,7 @@ module Oga # @param [Oga::XPath::Node] expression # @return [Oga::XML::Node] # - def context_node(context, expression = nil) + def function_node(context, expression = nil) if expression node = process(expression, context)