feat(aa): add merge methods to the rule interface.
This commit is contained in:
parent
a91e2ddf56
commit
6791dcde28
14 changed files with 192 additions and 11 deletions
|
|
@ -24,6 +24,11 @@ func (r *All) Compare(other Rule) int {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (r *All) Merge(other Rule) bool {
|
||||
o, _ := other.(*All)
|
||||
return r.RuleBase.merge(o.RuleBase)
|
||||
}
|
||||
|
||||
func (r *All) String() string {
|
||||
return renderTemplate(r.Kind(), r)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue