class Machete::Matchers::IndifferentRegexpMatcher

Public Instance Methods

matches?(node) click to toggle source
# File lib/machete/matchers.rb, line 161
def matches?(node)
  (node.is_a?(Symbol) && node.to_s =~ @regexp) ||
  (node.is_a?(String) && node =~ @regexp)
end