Sha256: ed9bc9b155dd415ed923fe6e01a4976211e323b7edee2ca6c47b3d7fa96e87f8
Contents?: true
Size: 616 Bytes
Versions: 12
Compression:
Stored size: 616 Bytes
Contents
require_relative 'options' require_relative 'processor' module FLV module Edit class Runner attr_reader :options, :commands def initialize(*arg) @commands, @options = (arg.length == 1 ? Options.new(arg.first).to_a : arg) end def run commands = [*@commands].map{|c| c.is_a?(Class) ? c : Processor.const_get(c.to_s.camelize)} commands.unshift Processor::Reader commands << Processor::CommandLine unless options[:trace] Processor.chain(commands, @options).process_all end alias_method :run!, :run end end end
Version data entries
12 entries across 12 versions & 2 rubygems