lib/freemail.rb in freemail-0.1.1 vs lib/freemail.rb in freemail-0.2.0
- old
+ new
@@ -11,9 +11,13 @@
def self.disposable?(email)
DISPOSABLE.key?(get_domain(email))
end
+ def self.free_or_disposable?(email)
+ free?(email) || disposable?(email)
+ end
+
def self.get_domain(email)
email.split('@').last.downcase.strip
end
end