Sha256: 63f0487021c9741a457ea491a7c19ad071178e8b87066b5ad0f071f4ff97c1a7
Contents?: true
Size: 637 Bytes
Versions: 5
Compression:
Stored size: 637 Bytes
Contents
require 'albacore/support/updateattributes' module NCover class ReportFilterBase include UpdateAttributes attr_accessor :filter, :filter_type, :item_type, :is_regex def initialize(item_type, params={}) @filter = "" @item_type = item_type @is_regex = false @filter_type = :exclude update_attributes(params) unless params.nil? super() end def get_filter_options filter = "\"#{@filter}\"" filter << ":#{@item_type}" filter << ":#{@is_regex}" filter << ":#{(@filter_type == :include)}" filter end end end
Version data entries
5 entries across 5 versions & 1 rubygems