rexle 0.9.25 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rexle.rb +4 -4
- metadata +1 -1
data/lib/rexle.rb
CHANGED
|
@@ -192,18 +192,18 @@ class Rexle
|
|
|
192
192
|
:"Rexle::Element" => proc {|x| [x]}
|
|
193
193
|
}
|
|
194
194
|
bucket = []
|
|
195
|
-
|
|
196
|
-
results = path.split('|').map do |xp|
|
|
195
|
+
raw_results = path.split('|').map do |xp|
|
|
197
196
|
query_xpath(xp, bucket, &blk)
|
|
198
197
|
end
|
|
199
|
-
|
|
198
|
+
results = raw_results.inject(&:+)
|
|
199
|
+
procs[results.class.to_s.to_sym].call(results)
|
|
200
200
|
|
|
201
201
|
else
|
|
202
202
|
m, xpath_value = fn_match.captures
|
|
203
203
|
method(m.to_sym).call(xpath_value)
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
end
|
|
206
|
+
end
|
|
207
207
|
|
|
208
208
|
def query_xpath(raw_xpath_value, rlist=[], &blk)
|
|
209
209
|
|