Class: CLabs::CaseGen::ExcludeRule

Inherits:
Rule show all
Defined in:
lib/agents/sets.rb

Instance Attribute Summary

Attributes inherited from Rule

#criteria, #data, #description

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Rule

#initialize, #parse_rule

Constructor Details

This class inherits a constructor from CLabs::CaseGen::Rule

Class Method Details

.create(rule_data) ⇒ Object



150
151
152
153
# File 'lib/agents/sets.rb', line 150

def ExcludeRule.create(rule_data)
  return ExcludeRule.new(rule_data) if rule_data =~ regexp
  return nil
end

.regexpObject



146
147
148
# File 'lib/agents/sets.rb', line 146

def ExcludeRule.regexp
  /^exclude/i
end

Instance Method Details

#type_descriptionObject



142
143
144
# File 'lib/agents/sets.rb', line 142

def type_description
  "exclude"
end