class ChefSpec::Coverage::BlockFilter
@example Match resources based on a custom block.
# Ignore internal cookbooks add_filter do |resource| resource.name =~ /^acme-(.+)/ end
Public Instance Methods
matches?(resource)
click to toggle source
# File lib/chefspec/coverage/filters.rb, line 43 def matches?(resource) return true if resource.source_line.nil? @filter.call(resource) end