Class: Exercism::Analyzers::Output

Inherits:
Analyzer
  • Object
show all
Defined in:
lib/exercism-analysis/analyzers/ruby/output.rb

Constant Summary collapse

STDOUT_METHODS =
%w(p puts print)

Instance Attribute Summary

Attributes inherited from Analyzer

#adapter, #processor

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

#callObject



10
11
12
13
14
15
# File 'lib/exercism-analysis/analyzers/ruby/output.rb', line 10

def call
  feedback = processor.result.map do |exp|
    Feedback.from_src(:print, exp.src_extract)
  end
  Result.new(:output, feedback)
end