Methods

Class/Module Index [+]

Quicksearch

Ruote::WaitLogger

A helper logger for quickstart examples.

Attributes

noisy[RW]

Public Class Methods

new(context) click to toggle source
# File lib/ruote/log/wait_logger.rb, line 37
def initialize (context)

  @context = context
  @color = 33

  @context.worker.subscribe(:all, self) if @context.worker

  @noisy = false
  @count = -1

  @seen = []
  @waiting = []
end

Public Instance Methods

notify(msg) click to toggle source
# File lib/ruote/log/wait_logger.rb, line 51
def notify (msg)

  puts(pretty_print(msg)) if @noisy

  #return if @waiting.size < 1
  #check_msg(msg)

  @seen << msg
  @seen.shift if @seen.size > 147

  check_waiting
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.