Sha256: dec9182f3294b97c38048de15f36f568eaa437def9ab61e97fa799765967419e

Contents?: true

Size: 371 Bytes

Versions: 22

Compression:

Stored size: 371 Bytes

Contents

# Multiplexor. Accepts a number of exporters and replays 
# the calls to all of them in succession.
class Tracksperanto::Export::Mux
  def initialize(*outputs)
    @outputs = outputs.flatten
  end

  %w( start_export start_tracker_segment end_tracker_segment
    export_point end_export).each do | m |
    define_method(m){|*a| @outputs.map{|o| o.send(m, *a)}}
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tracksperanto-4.0.0 lib/export/mux.rb
tracksperanto-2.8.6 lib/export/mux.rb
tracksperanto-2.8.5 lib/export/mux.rb
tracksperanto-2.8.4 lib/export/mux.rb
tracksperanto-2.8.2 lib/export/mux.rb
tracksperanto-2.8.1 lib/export/mux.rb
tracksperanto-2.8.0 lib/export/mux.rb
tracksperanto-2.7.0 lib/export/mux.rb
tracksperanto-2.6.3 lib/export/mux.rb
tracksperanto-2.6.2 lib/export/mux.rb
tracksperanto-2.6.1 lib/export/mux.rb
tracksperanto-2.6.0 lib/export/mux.rb
tracksperanto-2.5.0 lib/export/mux.rb
tracksperanto-2.4.1 lib/export/mux.rb
tracksperanto-2.3.3 lib/export/mux.rb
tracksperanto-2.3.2 lib/export/mux.rb
tracksperanto-2.3.1 lib/export/mux.rb
tracksperanto-2.3.0 lib/export/mux.rb
tracksperanto-2.2.4 lib/export/mux.rb
tracksperanto-2.2.2 lib/export/mux.rb