class ChefSpec::Coverage::RegexpFilter
@example Match resources based on a regular expression.
add_filter /^test/
Public Instance Methods
matches?(resource)
click to toggle source
# File lib/chefspec/coverage/filters.rb, line 18 def matches?(resource) return true if resource.source_line.nil? @filter =~ resource.source_line end