Class: Steep::Drivers::DiagnosticPrinter::BaseFormatter
- Defined in:
- lib/steep/drivers/diagnostic_printer/base_formatter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdout:, buffer:) ⇒ BaseFormatter
constructor
A new instance of BaseFormatter.
- #path ⇒ Object
Constructor Details
#initialize(stdout:, buffer:) ⇒ BaseFormatter
Returns a new instance of BaseFormatter.
8 9 10 11 |
# File 'lib/steep/drivers/diagnostic_printer/base_formatter.rb', line 8 def initialize(stdout:, buffer:) @stdout = stdout @buffer = buffer end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
6 7 8 |
# File 'lib/steep/drivers/diagnostic_printer/base_formatter.rb', line 6 def buffer @buffer end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
5 6 7 |
# File 'lib/steep/drivers/diagnostic_printer/base_formatter.rb', line 5 def stdout @stdout end |
Instance Method Details
#path ⇒ Object
13 14 15 |
# File 'lib/steep/drivers/diagnostic_printer/base_formatter.rb', line 13 def path Pathname(buffer.name) end |