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.
Files changed (2) hide show
  1. data/lib/polyrex-objects.rb +1 -0
  2. metadata +1 -1
@@ -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
 
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.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors: []
7
7