lib/pdd/rule/duplicates.rb in pdd-0.10 vs lib/pdd/rule/duplicates.rb in pdd-0.11
- old
+ new
@@ -27,10 +27,10 @@
class MaxDuplicates
# Ctor.
# +xml+:: XML with puzzles
def initialize(xml, max)
@xml = xml
- @max = max
+ @max = max.to_i
end
def errors
@xml.xpath('//puzzle')
.group_by { |p| p.xpath('body/text()').to_s }