Class: FFmpeg::FilterGraph::Pad
- Inherits:
-
Object
- Object
- FFmpeg::FilterGraph::Pad
- Defined in:
- lib/ffmpeg/filter_graph/pad.rb
Direct Known Subclasses
FFmpeg::FilterGraph::Pads::Inpad, FFmpeg::FilterGraph::Pads::Outpad
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
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.
21 22 23 24 25 |
# File 'lib/ffmpeg/filter_graph/pad.rb', line 21 def initialize(name) fail ArgumentError, 'name cannot be empty' if name.nil? || name.empty? @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ffmpeg/filter_graph/pad.rb', line 3 def name @name end |
Class Method Details
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/ffmpeg/filter_graph/pad.rb', line 27 def to_s "[#{name}]" end |