Class: Media::Command::Probe
- Inherits:
-
Object
- Object
- Media::Command::Probe
- Defined in:
- lib/media/command/probe.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(args) ⇒ Probe
constructor
A new instance of Probe.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'lib/media/command/probe.rb', line 15 def call @subshell.new(cmd: to_s).call end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/media/command/probe.rb', line 19 def to_s [@cmd, @options, @input].reject(&:empty?).join(' ') end |