Module: Yell::Helpers::Adapter
- Included in:
- Logger
- Defined in:
- lib/yell/helpers/adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#adapter(type = :file, *args, &block) ⇒ Yell::Adapter
Define an adapter to be used for logging.
- #adapters ⇒ Object
Instance Method Details
#adapter(type = :file, *args, &block) ⇒ Yell::Adapter
Define an adapter to be used for logging.
24 25 26 |
# File 'lib/yell/helpers/adapter.rb', line 24 def adapter( type = :file, *args, &block ) adapters.add(type, *args, &block) end |
#adapters ⇒ Object
28 29 30 |
# File 'lib/yell/helpers/adapter.rb', line 28 def adapters @__adapters__ end |