class Guard::Watcher::Pattern
def self.create(pattern)
def self.create(pattern) if DeprecatedRegexp.new(pattern).deprecated? DeprecatedRegexp.show_deprecation(pattern) return DeprecatedRegexp.convert(pattern) end return PathnamePath.new(pattern) if pattern.is_a?(Pathname) return SimplePath.new(pattern) if pattern.is_a?(String) Matcher.new(pattern) end