From 804f7551013e183cc57a757fa3f7a9301cb86961 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Fri, 10 Jan 2020 20:17:02 +0900 Subject: [PATCH] Pass keyword argument to XML::Querying#xpath implicitly --- lib/oga/xml/querying.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oga/xml/querying.rb b/lib/oga/xml/querying.rb index 80691b0..cd32b1e 100644 --- a/lib/oga/xml/querying.rb +++ b/lib/oga/xml/querying.rb @@ -63,8 +63,8 @@ module Oga # # @see [#xpath] # @return [Oga::XML::Node|Oga::XML::Attribute] - def at_xpath(*args) - result = xpath(*args) + def at_xpath(*args, namespaces: nil) + result = xpath(*args, namespaces: namespaces) result.is_a?(XML::NodeSet) ? result.first : result end