Class: RSpecTracer::StringFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/rspec_tracer/filter.rb

Instance Attribute Summary

Attributes inherited from Filter

#filter

Instance Method Summary collapse

Methods inherited from Filter

filter_class, #initialize, register

Constructor Details

This class inherits a constructor from RSpecTracer::Filter

Instance Method Details

#match?(source_file) ⇒ Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/rspec_tracer/filter.rb', line 64

def match?(source_file)
  source_file[:file_name].include?(@filter)
end