lib/ray/sound_set.rb in ray-0.0.1 vs lib/ray/sound_set.rb in ray-0.1.0.pre1
- old
+ new
@@ -1,9 +1,9 @@
module Ray
module SoundSet
extend Ray::ResourceSet
-
+
class << self
def missing_pattern(string)
Ray::Sound[string]
end
@@ -18,12 +18,14 @@
#
# @param [Regexp] regex Regular expression used to match file
# @yield [*args] Block returning the sound
#
# @yieldparam args Regex captures
- def self.sound_set(regex, &block)
+ def sound_set(regex, &block)
Ray::SoundSet.add_set(regex, &block)
end
+
+ module_function :sound_set
end
begin
require 'open-uri'