module WebTools::Support::ErrorLog

Constants

Entry

Public Instance Methods

add(hash) click to toggle source
# File lib/web_tools/support/error_log.rb, line 11
def add(hash)
  list << Entry.new(hash[:exception], hash[:thread])
  list.last
end
delete(entry) click to toggle source
# File lib/web_tools/support/error_log.rb, line 16
def delete(entry)
  list.delete entry
end
each(&block) click to toggle source
# File lib/web_tools/support/error_log.rb, line 28
def each(&block)
  list.each(&block)
end
list() click to toggle source
# File lib/web_tools/support/error_log.rb, line 20
def list
  defined?(@@list) ? @@list : @@list = []
end
to_a() click to toggle source
# File lib/web_tools/support/error_log.rb, line 24
def to_a
  list
end