From ba058627f2a115ee4ceeec6faadeb01642714a14 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Mon, 25 Aug 2014 23:12:45 +0200 Subject: [PATCH] Corrected docs for on_call_string(). --- lib/oga/xpath/evaluator.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/oga/xpath/evaluator.rb b/lib/oga/xpath/evaluator.rb index 061b52d..fcc5643 100644 --- a/lib/oga/xpath/evaluator.rb +++ b/lib/oga/xpath/evaluator.rb @@ -763,9 +763,12 @@ module Oga # node to a string. If a node set is given then only the first node is # converted to a string. # + # @example + # string(10) # => "10" + # # @param [Oga::XML::NodeSet] context # @param [Oga::XPath::Node] expression - # @return [Oga::XML::NodeSet] + # @return [String] # def on_call_string(context, expression = nil) if expression