polyrex-objects 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex-objects.rb +1 -1
- metadata +1 -1
data/lib/polyrex-objects.rb
CHANGED
@@ -31,7 +31,7 @@ class PolyrexObjects
|
|
31
31
|
classx << "@create = PolyrexCreateObject.new('#{schema}')"
|
32
32
|
classx << "end"
|
33
33
|
fields.each do |field|
|
34
|
-
classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()'); end"
|
34
|
+
classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()').to_s; end"
|
35
35
|
classx << "def #{field}=(text); XPath.first(@node, 'summary/#{field}').text = text; end"
|
36
36
|
end
|
37
37
|
classx << "def to_xml(); @node.to_s; end"
|