Sha256: 95bee5821edb70af0f376b8afd0a889bf6e5193a532730dcf0026fa788dd7cd5
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
require_relative '../generator' module Dagger module Generate # Set requirement for further processing. # # _default.key: # - require_name: regexp # - ... class RequireName < Dagger::Generator def process(regexps) string = dictionary['_meta.name'] stop unless enumerable(regexps).any? do |regexp| ::Regexp.new(regexp).match?(string) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-dagger-0.1.1 | lib/dagger/generator/require_name.rb |