Class: PluginTool::ProfilerFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/debuggers.rb

Direct Known Subclasses

ProfilerFormatterRaw, ProfilerFormatterTree

Instance Method Summary collapse

Constructor Details

#initialize(output_file) ⇒ ProfilerFormatter

Returns a new instance of ProfilerFormatter.



47
48
49
# File 'lib/debuggers.rb', line 47

def initialize(output_file)
  @output_file = output_file
end

Instance Method Details

#format(report) ⇒ Object



50
51
52
53
# File 'lib/debuggers.rb', line 50

def format(report)
  _format(report, @output_file)
  @output_file.flush
end