Module: FastIgnore::Matchers::AllowAnyDir

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

Class Method Summary collapse

Class Method Details

.dir_only?Boolean

Returns:

  • (Boolean)


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

def dir_only?
  true
end

.file_only?Boolean

Returns:

  • (Boolean)


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

def file_only?
  false
end

.inspectObject

:nocov:



28
29
30
# File 'lib/fast_ignore/matchers/allow_any_dir.rb', line 28

def inspect
  '#<AllowAnyDir>'
end

.match?(_) ⇒ Boolean

:nocov:

Returns:

  • (Boolean)


33
34
35
# File 'lib/fast_ignore/matchers/allow_any_dir.rb', line 33

def match?(_)
  :allow
end

.squash(_) ⇒ Object



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

def squash(_)
  self
end

.squash_idObject



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

def squash_id
  :allow_any_dir
end

.weightObject



23
24
25
# File 'lib/fast_ignore/matchers/allow_any_dir.rb', line 23

def weight
  0
end