class KOAUtils::StringLogger

Public Class Methods

new() click to toggle source
# File lib/koa-utils/logger.rb, line 4
def initialize
  @msgs = []
end

Public Instance Methods

flush() click to toggle source
# File lib/koa-utils/logger.rb, line 12
def flush
  @msgs.length.times.map {@msgs.pop}
end
puts(msg) click to toggle source
# File lib/koa-utils/logger.rb, line 8
def puts(msg)
  @msgs << msg
end