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


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

def initialize(filter)
  @filter = filter
end

Instance Method Details

#matches?Boolean

Raises:

  • (RuntimeError)

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

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