Sha256: f6a389b0f9ca2b69f4c30bf67601f86a179e81af23ed0ebbcd6f56271928fae8

Contents?: true

Size: 171 Bytes

Versions: 5

Compression:

Stored size: 171 Bytes

Contents

require 'stringio'
require 'logger'

class StringLogger < Logger
  def initialize
    @strio = StringIO.new
    super @strio
  end

  def to_s
    @strio.string
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano-measure-0.10.0 spec/support/string_logger.rb
capistrano-measure-0.9.1 spec/support/string_logger.rb
capistrano-measure-0.9.0 spec/support/string_logger.rb
capistrano-measure-0.8.1 spec/support/string_logger.rb
capistrano-measure-0.8.0 spec/support/string_logger.rb