Class: FLV::Edit::Runner
- Inherits:
-
Object
- Object
- FLV::Edit::Runner
- Defined in:
- lib/flvedit/runner.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(*arg) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object (also: #run!)
Constructor Details
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
7 8 9 |
# File 'lib/flvedit/runner.rb', line 7 def commands @commands end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/flvedit/runner.rb', line 7 def @options end |
Instance Method Details
#run ⇒ Object Also known as: run!
13 14 15 16 17 18 |
# File 'lib/flvedit/runner.rb', line 13 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 [:trace] Processor.chain(commands, @options).process_all end |