Module: WebTools::Support::ErrorLog
- Extended by:
- Enumerable, ErrorLog
- Included in:
- ErrorLog
- Defined in:
- lib/web_tools/support/error_log.rb
Defined Under Namespace
Classes: Entry
Instance Method Summary collapse
Instance Method Details
#add(hash) ⇒ Object
11 12 13 14 |
# 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) ⇒ Object
16 17 18 |
# File 'lib/web_tools/support/error_log.rb', line 16 def delete(entry) list.delete entry end |
#each(&block) ⇒ Object
28 29 30 |
# File 'lib/web_tools/support/error_log.rb', line 28 def each(&block) list.each(&block) end |
#list ⇒ Object
20 21 22 |
# File 'lib/web_tools/support/error_log.rb', line 20 def list defined?(@@list) ? @@list : @@list = [] end |
#to_a ⇒ Object
24 25 26 |
# File 'lib/web_tools/support/error_log.rb', line 24 def to_a list end |