Module: Monosasi::Utils::TargetMatcher
Instance Method Summary collapse
Instance Method Details
#target?(name) ⇒ Boolean
3 4 5 6 7 8 9 10 11 12 13 14 |
# 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 |