Class: Logger
- Inherits:
-
Object
- Object
- Logger
- Defined in:
- lib/n/logger.rb
Instance Method Summary collapse
-
#d(str) ⇒ Object
Used for debuging, remove this in release code.
- #detach ⇒ Object
-
#i(obj) ⇒ Object
Inspect an object.
Instance Method Details
#d(str) ⇒ Object
Used for debuging, remove this in release code.
22 23 24 |
# File 'lib/n/logger.rb', line 22 def d(str) self << "#{str}\n" end |
#detach ⇒ Object
17 18 |
# File 'lib/n/logger.rb', line 17 def detach end |
#i(obj) ⇒ Object
Inspect an object. Used for debugging, remove this in release code.
29 30 31 |
# File 'lib/n/logger.rb', line 29 def i(obj) self << "Inspect #{obj.inspect()}\n" end |