Class: Anvil::Logger
- Inherits:
-
Struct
- Object
- Struct
- Anvil::Logger
- Defined in:
- lib/anvil/logger.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix
3 4 5 |
# File 'lib/anvil/logger.rb', line 3 def prefix @prefix end |
Instance Method Details
#info(message, category = nil) ⇒ Object
4 5 6 |
# File 'lib/anvil/logger.rb', line 4 def info , category = nil puts [, category, ].compact.join(" ") end |