module Monosasi::Utils::TargetMatcher

Public Instance Methods

target?(name) click to toggle source
# File lib/monosasi/utils/target_matcher.rb, line 3
def target?(name)
  case
  when @options[:include]
    @options.fetch(:include) =~ name
  when @options[:target]
    @options.fetch(:target) =~ name
  when @options[:exclude]
    @options.fetch(:exclude) !~ name
  else
    true
  end
end