Renamed context_node to function_node.

This commit is contained in:
Yorick Peterse 2014-08-21 19:06:14 +02:00
parent 8cc0db2283
commit e7019ceb4c
1 changed files with 3 additions and 3 deletions

View File

@ -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)