Sha256: 569ef77115ddad8b3a96721b53fb365e3e93ba8c60936fbcd07b291d2ab53393
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 Bytes
Contents
require_relative '../generator' module Dagger module Generate # Set requirement for further processing. # # _default.key: # - require: # key: regexp # - ... class Require < Dagger::Generator def process(keys) return unless keys.all? do |key, regexps| string = dictionary[key] enumerable(regexps).any? do |regexp| ::Regexp.new(regexp).match?(string) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-dagger-0.1.0 | lib/dagger/generator/require.rb |