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.
26 27 28 |
# File 'lib/yell/helpers/adapter.rb', line 26 def adapter( type = :file, *args, &block ) adapters.add(type, *args, &block) end |
#adapters ⇒ Object
30 31 32 |
# File 'lib/yell/helpers/adapter.rb', line 30 def adapters @__adapters__ end |