Class: FastForward::Output

Inherits:
Object
  • Object
show all
Includes:
InputOutputOptions, Options
Defined in:
lib/fastforward/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from InputOutputOptions

#frame_rate

Methods included from Options

#add_option

Constructor Details

#initialize(filename) {|_self| ... } ⇒ Output

Returns a new instance of Output.

Yields:

  • (_self)

Yield Parameters:



8
9
10
11
12
# File 'lib/fastforward/output.rb', line 8

def initialize(filename)
  @filename = filename
  @options  = []
  yield(self) if block_given?
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



6
7
8
# File 'lib/fastforward/output.rb', line 6

def filename
  @filename
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/fastforward/output.rb', line 6

def options
  @options
end

Instance Method Details

#bitrate(value) ⇒ Object



14
15
16
# File 'lib/fastforward/output.rb', line 14

def bitrate(value)
  add_option("b", value)
end