Class: Wovnrb::Settings::IgnoreGlobsWrapper

Inherits:
Array
  • Object
show all
Defined in:
lib/wovnrb/settings.rb

Instance Method Summary collapse

Instance Method Details

#ignore?(uri) ⇒ Boolean

Returns:

  • (Boolean)


40
41
42
43
44
# File 'lib/wovnrb/settings.rb', line 40

def ignore?(uri)
  path = Addressable::URI.parse(uri).path

  any? { |glob| glob.match?(path) }
end