class MultimediaParadise::Audio::NAudioSongs
Constants
- ALSO_STORE_FULL_PATHNAME_TO_THE_SONGS
#¶ ↑
ALSO_STORE_FULL_PATHNAME_TO_THE_SONGS
¶ ↑If the following constant is true, then we will also append all songs via comment.
#¶ ↑
- ARRAY_AUDIO_FILES
#¶ ↑
ARRAY_AUDIO_FILES
¶ ↑#¶ ↑
- AUDIO_DIR
#¶ ↑
AUDIO_DIR
¶ ↑#¶ ↑
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
- STORE_HERE
#¶ ↑
STORE_HERE
¶ ↑#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
Public Instance Methods
all_songs?()
click to toggle source
#¶ ↑
all_songs?¶ ↑
This method will return all songs, as Array.
#¶ ↑
# File lib/multimedia_paradise/audio/n_audio_songs.rb, line 125 def all_songs? all_local_audio_songs = Dir["#{directory_to_the_local_songs?}*"].select {|entry| is_audio_song?(entry) } all_local_audio_songs = sort_array_alphabetically( all_local_audio_songs ) return all_local_audio_songs end
append(this)
click to toggle source
assemble_string_to_store()
click to toggle source
determine_how_many_songs_we_have()
click to toggle source
do_save_all_the_necessary_parts()
click to toggle source
#¶ ↑
do_save_all_the_necessary_parts
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/audio/n_audio_songs.rb, line 145 def do_save_all_the_necessary_parts if ALSO_STORE_FULL_PATHNAME_TO_THE_SONGS append '' append '' append '#' _ = ''.dup all_songs?.each {|this_song| _ << "# #{this_song}#{N}" } append _.chomp append '#' end save_file(@string_to_store, STORE_HERE) end
get_date()
click to toggle source
input?()
click to toggle source
n_songs_available()
click to toggle source
notify_the_user_what_will_be_done()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
MultimediaParadise::AudioBase#reset
# File lib/multimedia_paradise/audio/n_audio_songs.rb, line 72 def reset super() # ======================================================================= # # === @namespace # ======================================================================= # @namespace = NAMESPACE # ======================================================================= # # === @n_songs # ======================================================================= # @n_songs = 0 # ======================================================================= # # === @string_to_store # ======================================================================= # @string_to_store = ''.dup end
run()
click to toggle source
set_input(i = '')
click to toggle source