From f52efae271ddb376e7223405c3a74edd7ed598b9 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Goncalves Date: Fri, 1 Aug 2014 17:49:13 -0300 Subject: Changed names according to new convention on the fake service --- .../lib/pixelated_service/search/negate_match.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fake-service/lib/pixelated_service/search/negate_match.rb (limited to 'fake-service/lib/pixelated_service/search/negate_match.rb') diff --git a/fake-service/lib/pixelated_service/search/negate_match.rb b/fake-service/lib/pixelated_service/search/negate_match.rb new file mode 100644 index 00000000..77d880e8 --- /dev/null +++ b/fake-service/lib/pixelated_service/search/negate_match.rb @@ -0,0 +1,22 @@ +module PixelatedService + class Search + class NegateMatch + attr_reader :data + def initialize(data) + @data = data + end + + def to_s + "Negate(#@data)" + end + + def match?(mail) + !self.data.match?(mail) + end + + def match_string?(str) + !self.data.match_string?(str) + end + end + end +end -- cgit v1.2.3