polyrex-objects 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex-objects.rb +1 -0
- metadata +1 -1
data/lib/polyrex-objects.rb
CHANGED
@@ -20,6 +20,7 @@ class PolyrexObjects
|
|
20
20
|
|
21
21
|
classx = []
|
22
22
|
classx << "class #{name.capitalize}"
|
23
|
+
classx << "include REXML"
|
23
24
|
classx << "def initialize(node); @node = node; end"
|
24
25
|
fields.each do |field|
|
25
26
|
classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()'); end"
|