Module: Orthoses::Trace::Targetable
Instance Method Summary collapse
Instance Method Details
#target?(name) ⇒ Boolean
6 7 8 9 10 11 12 13 14 |
# File 'lib/orthoses/trace/targetable.rb', line 6 def target?(name) @patterns.any? do |pattern| if pattern.end_with?("*") (name || "").start_with?(pattern.chop) else name == pattern end end end |