class AMA::Entity::Mapper::Aux::NullStream

: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

Constants

INSTANCE

Public Instance Methods

<<(*) click to toggle source
# File lib/ama-entity-mapper/aux/null_stream.rb, line 22
def <<(*)
  self
end
close(*) click to toggle source
# File lib/ama-entity-mapper/aux/null_stream.rb, line 20
def close(*); end
write(message, *) click to toggle source
# File lib/ama-entity-mapper/aux/null_stream.rb, line 16
def write(message, *)
  message.size
end