lib/dagger/generator/require.rb in ruby-dagger-0.1.0 vs lib/dagger/generator/require.rb in ruby-dagger-0.1.1
- old
+ new
@@ -8,10 +8,10 @@
# - require:
# key: regexp
# - ...
class Require < Dagger::Generator
def process(keys)
- return unless keys.all? do |key, regexps|
+ stop unless keys.any? do |key, regexps|
string = dictionary[key]
enumerable(regexps).any? do |regexp|
::Regexp.new(regexp).match?(string)
end
end