Method: Sound.preload_sounds
- Defined in:
- lib/fantasy/sound.rb
.preload_sounds ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/fantasy/sound.rb', line 25 def preload_sounds return unless Dir.exist?(base_path) Dir.each_child(base_path) do |file_name| locate_sound(file_name) unless file_name.start_with?(".") end end |