Module: Break::Filter
Instance Attribute Summary collapse
-
#internal ⇒ Object
readonly
Returns the value of attribute internal.
Instance Method Summary collapse
Instance Attribute Details
#internal ⇒ Object (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
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 |