Sha256: d58d8e953f386b1fa09fc1b1345542be6fb8d1f08e60b89df6eac76b090d2d05
Contents?: true
Size: 555 Bytes
Versions: 3
Compression:
Stored size: 555 Bytes
Contents
# A singleton to hold on to the debuggable processes module WebTools module Support module ErrorLog extend self extend Enumerable Entry = Struct.new :exception, :thread def add(hash) list << Entry.new(hash[:exception], hash[:thread]) list.last end def delete(entry) list.delete entry end def list defined?(@@list) ? @@list : @@list = [] end def to_a list end def each(&block) list.each(&block) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
maglev-webtools-1.0.2 | lib/web_tools/support/error_log.rb |
maglev-webtools-1.0.1 | lib/web_tools/support/error_log.rb |
maglev-webtools-1.0 | lib/web_tools/support/error_log.rb |