Class: Pipe

Inherits:
Object
  • Object
show all
Defined in:
lib/universal_pipe_handler/cmdlets/play.rb

Instance Method Summary collapse

Instance Method Details

#action_play(this_file = result?) ) ⇒ Object

#

action_play

Using set_result() in this method does not seem to make a lot of sense, so we won’t do so.

#


9
10
11
12
13
14
15
16
# File 'lib/universal_pipe_handler/cmdlets/play.rb', line 9

def action_play(this_file = result?)
  if this_file.is_a? Array
    this_file.each {|entry| action_play(entry) }
  else
    use_this_command_to_play_video_files = 'mplayer -vo x11 -zoom '
    esystem use_this_command_to_play_video_files+this_file
  end
end