rcscript-client 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rcscript-client.rb +5 -1
- metadata +1 -1
data/lib/rcscript-client.rb
CHANGED
@@ -53,7 +53,11 @@ class RScriptClient
|
|
53
53
|
summary_node = XPath.match(@doc.root, 'summary/*')
|
54
54
|
if summary_node then
|
55
55
|
summary_node.each do |node|
|
56
|
-
|
56
|
+
method =<<EOF
|
57
|
+
def #{node.name}()
|
58
|
+
"#{(node.cdatas.length > 0 ? node.cdatas.join.strip : node.text.to_s).gsub(/"/,'\"')}"
|
59
|
+
end
|
60
|
+
EOF
|
57
61
|
self.instance_eval(method)
|
58
62
|
end
|
59
63
|
records = XPath.match(@doc.root, 'records/*/text()')
|