Sha256: 196ea895dc410e93a2fd71d887e778958495bb9c5b42210c8f5431d8bd675d04
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true require_relative '../generator' module Dagger module Generate # Set requirement for further processing. # # _default.key: # - require_name: regexp # - ... class RequireName < Dagger::Generator def process(regexps) stop unless enumerable(regexps).any? do |regexp| ::Regexp.new(regexp).match?(vertex.name) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-dagger-0.2.1 | lib/dagger/generator/require_name.rb |
ruby-dagger-0.2.0 | lib/dagger/generator/require_name.rb |