Class: ChefSpec::Coverage::StringFilter
- Inherits:
-
RegexpFilter
- Object
- Filter
- RegexpFilter
- ChefSpec::Coverage::StringFilter
- Defined in:
- lib/chefspec/coverage/filters.rb
Overview
Instance Method Summary collapse
-
#initialize(filter) ⇒ StringFilter
constructor
A new instance of StringFilter.
Methods inherited from RegexpFilter
Methods inherited from Filter
Constructor Details
#initialize(filter) ⇒ StringFilter
Returns a new instance of StringFilter.
30 31 32 |
# File 'lib/chefspec/coverage/filters.rb', line 30 def initialize(filter) super(Regexp.new("^#{filter}")) end |