Class: GeekDict::Debugger
- Inherits:
-
Object
- Object
- GeekDict::Debugger
- Defined in:
- lib/geekdict/debugger.rb
Instance Method Summary collapse
- #debug(msg) ⇒ Object
-
#initialize(enable = false) ⇒ Debugger
constructor
A new instance of Debugger.
Constructor Details
#initialize(enable = false) ⇒ Debugger
Returns a new instance of Debugger.
6 7 8 9 |
# File 'lib/geekdict/debugger.rb', line 6 def initialize(enable=false) @enable = enable @logger = new_logger if enable end |
Instance Method Details
#debug(msg) ⇒ Object
11 12 13 |
# File 'lib/geekdict/debugger.rb', line 11 def debug(msg) @logger.debug msg if @enable end |