Module: Break::Filter

Extended by:
Filter
Included in:
Filter
Defined in:
lib/break/filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#internalObject (readonly)

Returns the value of attribute internal.



7
8
9
# File 'lib/break/filter.rb', line 7

def internal
  @internal
end

Instance Method Details

#internal?(path) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/break/filter.rb', line 13

def internal?(path)
  @internal.any? { |location| path.include?(location) }
end

#register_internal(*paths) ⇒ Object



9
10
11
# File 'lib/break/filter.rb', line 9

def register_internal(*paths)
  (@internal ||= []).concat(paths)
end