rexle 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rexle.rb +2 -2
- metadata +1 -1
data/lib/rexle.rb
CHANGED
@@ -15,8 +15,8 @@ class Rexle
|
|
15
15
|
if x then
|
16
16
|
procs = {
|
17
17
|
String: proc {|x| RexleParser.new(x).to_a},
|
18
|
-
Array: proc {|x| x}
|
19
|
-
REXML::Document
|
18
|
+
Array: proc {|x| x},
|
19
|
+
:"REXML::Document" => proc {|x| scan_doc x.root}
|
20
20
|
}
|
21
21
|
a = procs[x.class.to_s.to_sym].call(x)
|
22
22
|
else
|