Module: PathList::Matchers::AllowAnyDir

Defined in:
lib/path_list/matchers/allow_any_dir.rb

Class Method Summary collapse

Class Method Details

.dir_only?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/path_list/matchers/allow_any_dir.rb', line 11

def dir_only?
  true
end

.file_only?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/path_list/matchers/allow_any_dir.rb', line 15

def file_only?
  false
end

.inspectObject

:nocov:



24
25
26
# File 'lib/path_list/matchers/allow_any_dir.rb', line 24

def inspect
  '#<AllowAnyDir>'
end

.match?(_) ⇒ Boolean

:nocov:

Returns:

  • (Boolean)


29
30
31
# File 'lib/path_list/matchers/allow_any_dir.rb', line 29

def match?(_)
  :allow
end

.shebang?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/path_list/matchers/allow_any_dir.rb', line 19

def shebang?
  false
end

.squash_idObject



7
8
9
# File 'lib/path_list/matchers/allow_any_dir.rb', line 7

def squash_id
  :allow
end