Class: FastForward::Output
- Inherits:
-
Object
- Object
- FastForward::Output
- Includes:
- InputOutputOptions, Options
- Defined in:
- lib/fastforward/output.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #bitrate(value) ⇒ Object
-
#initialize(filename) {|_self| ... } ⇒ Output
constructor
A new instance of Output.
Methods included from InputOutputOptions
Methods included from Options
Constructor Details
#initialize(filename) {|_self| ... } ⇒ Output
Returns a new instance of Output.
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
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
6 7 8 |
# File 'lib/fastforward/output.rb', line 6 def filename @filename end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/fastforward/output.rb', line 6 def @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 |