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(output = $stdout) ⇒ Formatter
Returns a new instance of Formatter.
5
6
7
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 5
def initialize(output = $stdout)
@output = output
end
|
Instance Method Details
#close ⇒ Object
25
26
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 25
def close
end
|
#engine_running(engine) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 15
def engine_running(engine)
@current_engine = engine
yield
ensure
@current_engine = nil
end
|
#failed(output) ⇒ Object
28
29
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 28
def failed(output)
end
|
#finished ⇒ Object
22
23
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 22
def finished
end
|
#started ⇒ Object
12
13
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 12
def started
end
|
#write(data) ⇒ Object
9
10
|
# File 'lib/cc/analyzer/formatters/formatter.rb', line 9
def write(data)
end
|