Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/spamham/string.rb
Instance Method Summary collapse
-
#spam?(config = nil) ⇒ Boolean
Adds .spam? to strings.
Instance Method Details
#spam?(config = nil) ⇒ Boolean
Adds .spam? to strings
Takes configuration options
5 6 7 8 9 |
# File 'lib/spamham/string.rb', line 5 def spam?(config = nil) spam=SpamHam.new spam.conf(config) if config spam.spam?(self) end |