Class: EmailBlacklist::Config
- Inherits:
-
Object
- Object
- EmailBlacklist::Config
- Defined in:
- lib/email_blacklist.rb
Constant Summary collapse
- @@blacklist_block =
nil
Class Method Summary collapse
Class Method Details
.blacklist(&blk) ⇒ Object
11 12 13 |
# File 'lib/email_blacklist.rb', line 11 def blacklist(&blk) @@blacklist_block = blk end |
.blacklisted?(email_address) ⇒ Boolean
15 16 17 18 |
# File 'lib/email_blacklist.rb', line 15 def blacklisted?(email_address) return false unless @@blacklist_block @@blacklist_block.call(email_address) ? true : false end |