Class RubyRunHTMLWriter::RubyRunHTMLDevice
In: lib/rubyrun/rubyrun_html_writer__.rb
Parent: Logger::LogDevice

Methods

new  

Public Class methods

[Source]

    # File lib/rubyrun/rubyrun_html_writer__.rb, line 42
42:     def initialize(log = nil, header = nil, opt = {})
43:       @header = header
44:       @dev = @filename = @shift_age = @shift_size = nil
45:       @mutex = LogDeviceMutex.new
46:       if log.respond_to?(:write) and log.respond_to?(:close)
47:         @dev = log
48:       else
49:         @dev = open_logfile(log)
50:         @dev.sync = true
51:         @filename = log
52:         @shift_age = opt[:shift_age] || 7
53:         @shift_size = opt[:shift_size] || 1048576
54:       end
55:     end

[Validate]