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.5.9 lib/export/mux.rb
tracksperanto-3.5.8 lib/export/mux.rb
tracksperanto-3.5.7 lib/export/mux.rb
tracksperanto-3.5.6 lib/export/mux.rb
tracksperanto-3.5.5 lib/export/mux.rb
tracksperanto-3.5.4 lib/export/mux.rb
tracksperanto-3.5.2 lib/export/mux.rb
tracksperanto-3.5.1 lib/export/mux.rb
tracksperanto-3.5.0 lib/export/mux.rb
tracksperanto-3.4.1 lib/export/mux.rb
tracksperanto-3.4.0 lib/export/mux.rb
tracksperanto-3.3.13 lib/export/mux.rb
tracksperanto-3.3.12 lib/export/mux.rb
tracksperanto-3.3.11 lib/export/mux.rb
tracksperanto-3.3.10 lib/export/mux.rb
tracksperanto-3.3.9 lib/export/mux.rb
tracksperanto-3.3.8 lib/export/mux.rb
tracksperanto-3.3.7 lib/export/mux.rb
tracksperanto-3.3.6 lib/export/mux.rb
tracksperanto-3.3.0.pre lib/export/mux.rb