polyrex-objects 0.4.5 → 0.4.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 +2 -2
data/lib/polyrex-objects.rb
CHANGED
@@ -31,6 +31,7 @@ class PolyrexObjects
|
|
31
31
|
classx << "def #{field}; XPath.first(@node, 'summary/#{field}/text()'); end"
|
32
32
|
classx << "def #{field}=(text); XPath.first(@node, 'summary/#{field}').text = text; end"
|
33
33
|
end
|
34
|
+
classx << "def to_xml(); @node.to_s; end"
|
34
35
|
classx << "end"
|
35
36
|
|
36
37
|
eval classx.join("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex-objects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-06-
|
12
|
+
date: 2010-06-08 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|