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