Class: CaseCheck::FilteredSource

Inherits:
Object
  • Object
show all
Defined in:
lib/case_check/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#srcObject (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_referencesObject



122
123
124
# File 'lib/case_check/commands.rb', line 122

def internal_references
  @include_exact ? src.internal_references : src.inexact_internal_references
end