Sha256: f0a1414c798bb60078b047fb7352a17e56c923911153098f97fd2d579cad7ea6
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 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'] 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.0 | lib/dagger/generator/require_name.rb |