rexle 0.6.1 → 0.6.2
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 +1 -1
- metadata +1 -1
data/lib/rexle.rb
CHANGED
@@ -109,7 +109,7 @@ class Rexle
|
|
109
109
|
rlist << return_elements.map.with_index do |x,i|
|
110
110
|
rtn_element = filter(x, i+1, attr_search){|e| r = e.xpath(a_path.join('/'), &blk); (r || e) }
|
111
111
|
next if rtn_element.nil? or (rtn_element.is_a? Array and rtn_element.empty?)
|
112
|
-
|
112
|
+
|
113
113
|
if rtn_element.is_a? Array then
|
114
114
|
rtn_element
|
115
115
|
elsif (rtn_element.is_a? String) || (rtn_element.is_a?(Array) and not(rtn_element[0].is_a? String))
|