Class: Epuber::Epubcheck::Report

Inherits:
Struct
  • Object
show all
Defined in:
lib/epuber/epubcheck.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#problemsObject

Returns the value of attribute problems

Returns:

  • (Object)

    the current value of problems



10
11
12
# File 'lib/epuber/epubcheck.rb', line 10

def problems
  @problems
end

Instance Method Details

#error?Boolean

!attribute [r] problems

@return [Array<Problem>] problems found by epubcheck

Returns:

  • (Boolean)


14
15
16
# File 'lib/epuber/epubcheck.rb', line 14

def error?
  problems.any?(&:error?)
end