Class: FFmpeg::FilterGraph::Pad
- Inherits:
-
Object
- Object
- FFmpeg::FilterGraph::Pad
- Defined in:
- lib/ffmpeg/filter_graph/pad.rb
Overview
Direct Known Subclasses
FFmpeg::FilterGraph::Pads::Inpad, FFmpeg::FilterGraph::Pads::Outpad
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
the name to return in the output.
Class Method Summary collapse
-
.in(pad) ⇒ Pads::Inpad
A factory method for creating inpads.
-
.out(pad) ⇒ Pads::Outpad
A factory method for creating outpads.
Instance Method Summary collapse
-
#initialize(name) ⇒ Pad
constructor
A new instance of Pad.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Pad
Returns a new instance of Pad.
27 28 29 30 31 |
# File 'lib/ffmpeg/filter_graph/pad.rb', line 27 def initialize(name) fail ArgumentError, 'name cannot be empty' if name.nil? || name.empty? @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
the name to return in the output
5 6 7 |
# File 'lib/ffmpeg/filter_graph/pad.rb', line 5 def name @name end |
Class Method Details
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/ffmpeg/filter_graph/pad.rb', line 33 def to_s "[#{name}]" end |