polyrex-objects 0.1.5 → 0.1.6
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
@@ -24,6 +24,7 @@ class PolyrexObjects
|
|
24
24
|
classx << "def initialize(node); @node = node; end"
|
25
25
|
fields.each do |field|
|
26
26
|
classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()'); end"
|
27
|
+
classx << "def #{field}=(text); XPath.first(@node, 'summary/#{field}').text = text; end"
|
27
28
|
end
|
28
29
|
classx << "end"
|
29
30
|
|