Class: FLV::Edit::Processor::Update
- Defined in:
- lib/flv/edit/processor/update.rb
Constant Summary
Constants inherited from Base
Base::ALL_EVENTS, Base::EVENT_TRIGGER, Base::EVENT_TRIGGER_LIST, Base::MAIN_EVENTS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(source = nil, options = {}) ⇒ Update
constructor
A new instance of Update.
- #on_header(header) ⇒ Object
Methods inherited from Base
#absorb, #dispatch_chunk, #dispatch_chunks, #dispatch_instead, #has_next_file?, #process_all, #process_next_file, #rewind, #stdout, #stop
Constructor Details
#initialize(source = nil, options = {}) ⇒ Update
Returns a new instance of Update.
8 9 10 11 |
# File 'lib/flv/edit/processor/update.rb', line 8 def initialize(source=nil, ={}) super = MetaDataMaker.new(source.dup, ) end |
Instance Method Details
#each(&block) ⇒ Object
13 14 15 16 17 |
# File 'lib/flv/edit/processor/update.rb', line 13 def each(&block) .each {} ensure # even if each throws, we better call super otherwise we won't be synchronized anymore! super end |
#on_header(header) ⇒ Object
21 22 23 |
# File 'lib/flv/edit/processor/update.rb', line 21 def on_header(header) dispatch_instead header, Tag.new(0, .) end |