polyrex 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex.rb +1 -2
- metadata +1 -1
data/lib/polyrex.rb
CHANGED
@@ -187,11 +187,10 @@ class Polyrex
|
|
187
187
|
buffer = File.open(s,'r').read
|
188
188
|
end
|
189
189
|
|
190
|
-
puts '*' + buffer + '*'
|
191
190
|
@doc = Document.new buffer
|
192
191
|
|
193
192
|
unless @format_masks
|
194
|
-
@format_masks = XPath.match(doc.root, '//format_mask/text()').map &:to_s
|
193
|
+
@format_masks = XPath.match(@doc.root, '//format_mask/text()').map &:to_s
|
195
194
|
schema_rpath = schema.gsub(/\[[^\]]+\]/,'')
|
196
195
|
@recordx = schema_rpath.split('/')
|
197
196
|
@recordx.shift
|