Class: Pakyow::Logger::Multiplexed

Inherits:
Object
  • Object
show all
Defined in:
lib/pakyow/logger/multiplexed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*destinations) ⇒ Multiplexed

Returns a new instance of Multiplexed.



8
9
10
# File 'lib/pakyow/logger/multiplexed.rb', line 8

def initialize(*destinations)
  @destinations = destinations
end

Instance Attribute Details

#destinationsObject (readonly)

Returns the value of attribute destinations.



6
7
8
# File 'lib/pakyow/logger/multiplexed.rb', line 6

def destinations
  @destinations
end

Instance Method Details

#call(entry) ⇒ Object



12
13
14
15
16
# File 'lib/pakyow/logger/multiplexed.rb', line 12

def call(entry)
  @destinations.each do |destination|
    destination.call(entry)
  end
end