class MultimediaParadise::MergeAudioFiles
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
new( commandline_arguments = nil, run_already = true )
click to toggle source
Public Instance Methods
add(this_file)
click to toggle source
commandline_arguments?()
click to toggle source
determine_which_files_are_to_be_merged()
click to toggle source
#¶ ↑
determine_which_files_are_to_be_merged
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/audio/merge_audio_files.rb, line 90 def determine_which_files_are_to_be_merged _ = @commandline_arguments.select {|entry| File.exist?(entry) and is_an_audio_file?(entry) } # ======================================================================= # # Next, we have to find audio files if the above variable assigned to # _ is empty. # ======================================================================= # if _.empty? _ = Dir['**/**'].select {|entry| is_an_audio_file?(entry) } unless _.empty? opnn; e 'No specific argument was provided. We will thus '+steelblue('scan for') opnn; e steelblue('all audio files in this directory and all subdirectories')+ ' to it' opnn; e 'and then merge these together into a new file.' end end add(_) end
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
MultimediaParadise::AudioBase#reset
# File lib/multimedia_paradise/audio/merge_audio_files.rb, line 50 def reset super() # ======================================================================= # # === @namespace # ======================================================================= # @namespace = NAMESPACE # ======================================================================= # # === @array_merge_these_files # ======================================================================= # @array_merge_these_files = [] end
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/audio/merge_audio_files.rb, line 113 def run determine_which_files_are_to_be_merged result = MultimediaParadise::MergeMultimedia.new( @array_merge_these_files ) output_file = result.output_file? if File.exist? output_file opnn; e "Merged into the file #{sfile(output_file)}." end end