Class: CC::Analyzer::Formatters::Formatter
- Inherits:
-
Object
- Object
- CC::Analyzer::Formatters::Formatter
show all
- Defined in:
- lib/cc/analyzer/formatters/formatter.rb
Constant Summary
collapse
- InvalidFormatterError =
Class.new(StandardError)
Instance Method Summary
collapse
Constructor Details
#initialize(filesystem, output = $stdout) ⇒ Formatter
Returns a new instance of Formatter.
5
6
7
8
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 5
def initialize(filesystem, output = $stdout)
@filesystem = filesystem
@output = output
end
|
Instance Method Details
#close ⇒ Object
26
27
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 26
def close
end
|
#engine_running(engine) ⇒ Object
16
17
18
19
20
21
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 16
def engine_running(engine)
@current_engine = engine
yield
ensure
@current_engine = nil
end
|
#failed(output) ⇒ Object
29
30
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 29
def failed(output)
end
|
#finished ⇒ Object
23
24
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 23
def finished
end
|
#started ⇒ Object
13
14
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 13
def started
end
|
#write(data) ⇒ Object
10
11
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 10
def write(data)
end
|