rexle 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rexle.rb +4 -1
- metadata +1 -1
data/lib/rexle.rb
CHANGED
@@ -80,7 +80,10 @@ class Rexle
|
|
80
80
|
|
81
81
|
attr_search = format_attributes(condition) if condition
|
82
82
|
|
83
|
-
|
83
|
+
if xpath_value[0,2] == '//'
|
84
|
+
return_elements = scan_match(self, element_name, attr_search, condition, rlist)
|
85
|
+
return (elmnt_path[/text\(\)$/] ? return_elements : return_elements.map(&:value))
|
86
|
+
end
|
84
87
|
|
85
88
|
return_elements = @child_lookup.map.with_index.select do |x|
|
86
89
|
x[0][0] == element_name or element_name == '*'
|