Sha256: 6132b1ed3d86df895abf027be81c2c2c9dffa497202217de7608453d2000d824

Contents?: true

Size: 398 Bytes

Versions: 42

Compression:

Stored size: 398 Bytes

Contents

# -*- encoding : utf-8 -*-
# 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

42 entries across 42 versions & 1 rubygems

Version Path
tracksperanto-3.2.2 lib/export/mux.rb
tracksperanto-3.2.1 lib/export/mux.rb
tracksperanto-3.2.0 lib/export/mux.rb
tracksperanto-3.1.0 lib/export/mux.rb
tracksperanto-3.0.1 lib/export/mux.rb
tracksperanto-3.0.0 lib/export/mux.rb
tracksperanto-2.12.0 lib/export/mux.rb
tracksperanto-2.11.3 lib/export/mux.rb
tracksperanto-2.11.2 lib/export/mux.rb
tracksperanto-2.11.1 lib/export/mux.rb
tracksperanto-2.11.0 lib/export/mux.rb
tracksperanto-2.10.0 lib/export/mux.rb
tracksperanto-2.9.9 lib/export/mux.rb
tracksperanto-2.9.8 lib/export/mux.rb
tracksperanto-2.9.7 lib/export/mux.rb
tracksperanto-2.9.6 lib/export/mux.rb
tracksperanto-2.9.5 lib/export/mux.rb
tracksperanto-2.9.4 lib/export/mux.rb
tracksperanto-2.9.3 lib/export/mux.rb
tracksperanto-2.9.2 lib/export/mux.rb