class

Ameba::Formatter::ExplainFormatter

Inherits Ameba::Formatter::Util < Reference < Object

A formatter that shows the detailed explanation of the issue at a specific location.

Constructors

new(output : IO, location)

Creates a new instance of ExplainFormatter.

Accepts output which indicates the io where the explanation will be written to. Second argument is location which indicates the location to explain.

ExplainFormatter.new output, {
  file:   path,
  line:   line_number,
  column: column_number,
}
Source

Instance methods

finished(sources) : Nil

Reports the explanations at the @location.

Source
location
Source
output
Source