Class: Exercism::Analyzers::ForLoop
- Defined in:
- lib/exercism-analysis/analyzers/ruby/for_loop.rb
Instance Attribute Summary
Attributes inherited from Analyzer
Instance Method Summary collapse
Methods inherited from Analyzer
#initialize, #lines, #padding, processor, #with_tempfile
Constructor Details
This class inherits a constructor from Exercism::Analyzers::Analyzer
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 |
# File 'lib/exercism-analysis/analyzers/ruby/for_loop.rb', line 8 def call feedback = processor.result.map do |exp| Feedback.from_src(:for_loop, exp.src_extract, replace_for_with_each(exp)) end Result.new(:for_loop, feedback) end |