Class: GemWhy::Formatters::BaseFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_why/formatters/base_formatter.rb

Overview

Base formatter with colorization support

Direct Known Subclasses

DeepFormatter, DirectFormatter, TreeFormatter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ BaseFormatter

Returns a new instance of BaseFormatter.



11
12
13
# File 'lib/gem_why/formatters/base_formatter.rb', line 11

def initialize(command)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



9
10
11
# File 'lib/gem_why/formatters/base_formatter.rb', line 9

def command
  @command
end