Sha256: c90e4244abbe2c18cb1ea9847538cb6660365336b102c6c105e43947743b8cda

Contents?: true

Size: 611 Bytes

Versions: 11

Compression:

Stored size: 611 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

11 entries across 11 versions & 1 rubygems

Version Path
albacore-0.3.6 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-1.0.0.rc.2 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-1.0.0.rc.1 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.3.5 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.3.4 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.3.3 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.3.2 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.3.1 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.3.0 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.2.7 lib/albacore/ncoverreports/reportfilterbase.rb
albacore-0.2.6 lib/albacore/ncoverreports/reportfilterbase.rb