Sha256: 4019bb4feb9fe5267180e446987707ed4675ca0c361a99f7cb06aef2092d4efc

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

class Exercism
  module Analyzers

    class Output < Analyzer

      STDOUT_METHODS = %w(p puts print)

      processor Processors::CallProcessor.partial(STDOUT_METHODS)

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

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exercism-analysis-0.1.1 lib/exercism-analysis/analyzers/ruby/output.rb