Method: PDD::Rule::Estimate::Max#errors

Defined in:
lib/pdd/rule/estimates.rb

#errorsObject



34
35
36
37
38
39
40
# File 'lib/pdd/rule/estimates.rb', line 34

def errors
  @xml.xpath("//puzzle[number(estimate) > #{@min}]").map do |p|
    "Puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')} " \
      "has an estimate of #{p.xpath('estimate/text()')} minutes, " \
      "which is bigger than #{@min} minutes"
  end
end