class MultimediaParadise::Audio::ModifyYearOfAudioFile
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
new( i = nil, run_already = true )
click to toggle source
Public Instance Methods
check_commandline()
click to toggle source
#¶ ↑
check_commandline
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/audio/modify_year_of_audio_file.rb, line 67 def check_commandline if @commandline_arguments.empty? opnn; e 'Please provide to what year you want to set this.' e e 'Example:' e e ' --year 2005' e else determine_the_year modify_the_year end end
determine_the_year()
click to toggle source
modify_the_year()
click to toggle source
#¶ ↑
modify_the_year
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/audio/modify_year_of_audio_file.rb, line 93 def modify_the_year name_of_the_file = @commandline_arguments.first if File.exist? name_of_the_file _ = "mid3v2 --year=#{year?} #{name_of_the_file}" opnn; e "Now modifying the file `#{sfile(name_of_the_file)}`." esystem _ else opnn; no_file_exists_at(name_of_the_file) end end
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
MultimediaParadise::AudioBase#reset
# File lib/multimedia_paradise/audio/modify_year_of_audio_file.rb, line 49 def reset super() # ======================================================================= # # === @namespace # ======================================================================= # @namespace = NAMESPACE end
run()
click to toggle source
set_commandline_arguments(i = [])
click to toggle source
set_this_year(i = nil)
click to toggle source
#¶ ↑
set_this_year
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/audio/modify_year_of_audio_file.rb, line 107 def set_this_year(i = nil) @this_year = i end
Also aliased as: set_year