Class: ActiveVlc::Stage::Base

Inherits:
Object
  • Object
show all
Includes:
PipelineDump
Defined in:
lib/activevlc/stage/base.rb

Direct Known Subclasses

Duplicate, Gather, Input, Stream, Transcode

Constant Summary

Constants included from PipelineDump

PipelineDump::TAB_WIDTH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PipelineDump

#_dump, #_dump_depth, #_find_in_ancestors

Constructor Details

#initialize(type = :dummy) ⇒ Base

Returns a new instance of Base.



21
22
23
24
# File 'lib/activevlc/stage/base.rb', line 21

def initialize(type = :dummy)
  @options = Hash.new
  @type = type
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



19
20
21
# File 'lib/activevlc/stage/base.rb', line 19

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



18
19
20
# File 'lib/activevlc/stage/base.rb', line 18

def type
  @type
end

Instance Method Details

#[](key) ⇒ Object



26
# File 'lib/activevlc/stage/base.rb', line 26

def [](key) @options[key] end

#[]=(key, value) ⇒ Object



27
# File 'lib/activevlc/stage/base.rb', line 27

def []=(key, value) @options[key] = value end

#fragmentObject



29
30
31
# File 'lib/activevlc/stage/base.rb', line 29

def fragment
  _recurse_on_suboption(@type, @options)
end