Class: CaseCheck::FilteredSource
- Inherits:
-
Object
- Object
- CaseCheck::FilteredSource
- Defined in:
- lib/case_check/commands.rb
Instance Attribute Summary collapse
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(source, include_exact_matches) ⇒ FilteredSource
constructor
A new instance of FilteredSource.
- #internal_references ⇒ Object
Constructor Details
#initialize(source, include_exact_matches) ⇒ FilteredSource
Returns a new instance of FilteredSource.
117 118 119 120 |
# File 'lib/case_check/commands.rb', line 117 def initialize(source, include_exact_matches) @src = source @include_exact = include_exact_matches end |
Instance Attribute Details
#src ⇒ Object (readonly)
Returns the value of attribute src.
115 116 117 |
# File 'lib/case_check/commands.rb', line 115 def src @src end |
Instance Method Details
#internal_references ⇒ Object
122 123 124 |
# File 'lib/case_check/commands.rb', line 122 def internal_references @include_exact ? src.internal_references : src.inexact_internal_references end |