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_a ⇒ 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_a).call end |
#to_a ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/media/command/probe.rb', line 19 def to_a [ @cmd, @options.map(&:to_a), @input ].flatten end |