Exception: Baykit::BayServer::Sink

Inherits:
StandardError
  • Object
show all
Defined in:
lib/baykit/bayserver/sink.rb

Instance Method Summary collapse

Constructor Details

#initialize(fmt = nil, *args) ⇒ Sink

Returns a new instance of Sink.



10
11
12
13
14
15
16
17
18
# File 'lib/baykit/bayserver/sink.rb', line 10

def initialize(fmt = nil, *args)
  super(if fmt == nil
          ""
        elsif args == nil
          sprintf("%s", fmt)
        else
          sprintf(fmt, *args)
        end + "(>_<)")
end