Class: ChefSpec::Coverage::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/chefspec/coverage/filters.rb

Direct Known Subclasses

BerkshelfFilter, BlockFilter, RegexpFilter

Instance Method Summary collapse

Constructor Details

#initialize(filter) ⇒ Filter

Returns a new instance of Filter.



4
5
6
# File 'lib/chefspec/coverage/filters.rb', line 4

def initialize(filter)
  @filter = filter
end

Instance Method Details

#matches?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/chefspec/coverage/filters.rb', line 8

def matches?
  raise "Must override Filter#matches?"
end