lib/ray/image_set.rb in ray-0.0.1 vs lib/ray/image_set.rb in ray-0.1.0.pre1
- old
+ new
@@ -17,12 +17,14 @@
# Creates a new image set.
#
# @param [Regexp] regex Regular expression used to match file
# @yield [*args] Block returning the image
# @yieldparam args Regex captures
- def self.image_set(regex, &block)
+ def image_set(regex, &block)
Ray::ImageSet.add_set(regex, &block)
end
+
+ module_function :image_set
end
begin
require 'open-uri'