class Pronto::Clippy::Parser

Attributes

output[R]

Public Class Methods

new(output) click to toggle source
# File lib/pronto/clippy/parser.rb, line 10
def initialize(output)
  @output = output
           .each_line
           .map { |json| JSON.parse(json) }
           .group_by do |entry|
    File.expand_path(entry['spans'].first['file_name'])
  end
end

Public Instance Methods

each() click to toggle source
# File lib/pronto/clippy/parser.rb, line 19
def each
  output.each
end