Sha256: 3f608c31d7438dbb2ab993cdd1dfcd388d6b627e392aab6803c3e9d5b854a7b2

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

require 'albacore/support/albacore_helper'

module NCover
  class ReportFilterBase
    include YAMLConfig
    
    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
      parse_config(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

6 entries across 6 versions & 1 rubygems

Version Path
albacore-0.1.5 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.1.4 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.1.3 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.1.2 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.1.1 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.1.0 lib/albacore/ncoverreports/reportfilterbase.rb