Module: DatabaseLeakFinder::Handler
- Defined in:
- lib/database_leak_finder/handler.rb
Class Attribute Summary collapse
-
.options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Class Attribute Details
.options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/database_leak_finder/handler.rb', line 4 def @options end |
Class Method Details
.config(options) ⇒ Object
15 16 17 |
# File 'lib/database_leak_finder/handler.rb', line 15 def config() @options = end |
.find_leaks ⇒ Object
10 11 12 13 |
# File 'lib/database_leak_finder/handler.rb', line 10 def find_leaks leaks = finder.process logger.log(@example, leaks) unless leaks.empty? end |
.log_example(example) ⇒ Object
6 7 8 |
# File 'lib/database_leak_finder/handler.rb', line 6 def log_example(example) @example = example end |