lib/render/generator.rb in render-0.0.6 vs lib/render/generator.rb in render-0.0.7
- old
+ new
@@ -28,10 +28,10 @@
generator.trigger(algorithm_argument)
end
def find(type, to_match)
instances.detect do |generator|
- (generator.type == type) && to_match.match(generator.matcher)
+ generator.type.to_s.match(/#{type}/i) && to_match.match(generator.matcher)
end
end
end
attr_accessor :type, :matcher, :algorithm