# File lib/algebrick/matchers/not.rb, line 20 def initialize(matcher) @matcher = matcher end
# File lib/algebrick/matchers/not.rb, line 32 def ==(other) other.kind_of? self.class and self.matcher == other.matcher end
# File lib/algebrick/matchers/not.rb, line 24 def children [] end
# File lib/algebrick/matchers/not.rb, line 28 def to_s '!' + matcher.to_s end
# File lib/algebrick/matchers/not.rb, line 39 def matching?(other) not matcher === other end