Class: AnalDiffist::StandardDiffist::ProblemSet
- Inherits:
-
Object
- Object
- AnalDiffist::StandardDiffist::ProblemSet
- Defined in:
- lib/analdiffist/standard_diffist.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#problems ⇒ Object
Returns the value of attribute problems.
Instance Method Summary collapse
-
#initialize(name, parsers, targets) ⇒ ProblemSet
constructor
A new instance of ProblemSet.
Constructor Details
#initialize(name, parsers, targets) ⇒ ProblemSet
Returns a new instance of ProblemSet.
35 36 37 38 39 40 41 42 43 |
# File 'lib/analdiffist/standard_diffist.rb', line 35 def initialize name, parsers, targets @name = name @problems = [] parsers.each do |parser| parser_instance = parser.new(targets.targets) problems = parser_instance.problems @problems += (problems || []) end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
34 35 36 |
# File 'lib/analdiffist/standard_diffist.rb', line 34 def name @name end |
#problems ⇒ Object
Returns the value of attribute problems.
34 35 36 |
# File 'lib/analdiffist/standard_diffist.rb', line 34 def problems @problems end |