Class: AMA::Entity::Mapper::Aux::NullStream
- Inherits:
-
Object
- Object
- AMA::Entity::Mapper::Aux::NullStream
- Defined in:
- lib/ama-entity-mapper/aux/null_stream.rb
Overview
:nocov: I just did copy-paste from SO stackoverflow.com/a/8681953/2908793
This class is required to use logger without any real output backend, which is by default
Constant Summary collapse
- INSTANCE =
new
Instance Method Summary collapse
Instance Method Details
#<< ⇒ Object
22 23 24 |
# File 'lib/ama-entity-mapper/aux/null_stream.rb', line 22 def <<(*) self end |
#close ⇒ Object
20 |
# File 'lib/ama-entity-mapper/aux/null_stream.rb', line 20 def close(*); end |
#write(message) ⇒ Object
16 17 18 |
# File 'lib/ama-entity-mapper/aux/null_stream.rb', line 16 def write(, *) .size end |