Sha256: 1fde2fff63e15e6a98a372509dd9da7cd4e67cae9b80a63a9b1fcff09066b580
Contents?: true
Size: 369 Bytes
Versions: 4
Compression:
Stored size: 369 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 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.public_send(m, *a)}} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tracksperanto-4.2.0 | lib/export/mux.rb |
tracksperanto-4.1.3 | lib/export/mux.rb |
tracksperanto-4.1.2 | lib/export/mux.rb |
tracksperanto-4.1.0 | lib/export/mux.rb |