lib/rotoscope.rb in rotoscope-0.3.0.pre.2 vs lib/rotoscope.rb in rotoscope-0.3.0.pre.3

- old
+ new

@@ -4,16 +4,16 @@ require 'tempfile' require 'csv' class Rotoscope class << self - def new(output_path, blacklist: [], flatten: false) - super(output_path, blacklist, flatten) + def new(output_path, entity_whitelist: nil, flatten: false) + super(output_path, entity_whitelist, flatten) end - def trace(dest, blacklist: [], flatten: false, &block) - config = { blacklist: blacklist, flatten: flatten } + def trace(dest, entity_whitelist: nil, flatten: false, &block) + config = { entity_whitelist: entity_whitelist, flatten: flatten } if dest.is_a?(String) event_trace(dest, config, &block) else io_event_trace(dest, config, &block) end @@ -43,10 +43,10 @@ end end end def event_trace(dest_path, config) - rs = Rotoscope.new(dest_path, blacklist: config[:blacklist], flatten: config[:flatten]) + rs = Rotoscope.new(dest_path, entity_whitelist: config[:entity_whitelist], flatten: config[:flatten]) rs.trace { yield rs } rs ensure rs.close if rs end