polyrex-objects 0.3.1 → 0.3.2
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
@@ -36,7 +36,7 @@ class PolyrexObjects
|
|
36
36
|
# implement the child_object within each class object
|
37
37
|
@class_names[0..-2].reverse.each_with_index do |class_name, k|
|
38
38
|
i = @class_names.length - (k + 1)
|
39
|
-
eval "#{
|
39
|
+
eval "#{class_name}.class_eval {
|
40
40
|
def records()
|
41
41
|
XPath.each(@node, 'records/*') {|record| yield(#{@class_names[i]}.new(record))}
|
42
42
|
end
|