Class: Threatinator::Filters::Comments
- Inherits:
-
Threatinator::Filter
- Object
- Threatinator::Filter
- Threatinator::Filters::Comments
- Defined in:
- lib/threatinator/filters/comments.rb
Overview
Filters out any lines of text that begin with a comment ‘#’
Instance Method Summary collapse
-
#filter?(record) ⇒ Boolean
True if filtered, false otherwise.
Instance Method Details
#filter?(record) ⇒ Boolean
Returns true if filtered, false otherwise.
9 10 11 |
# File 'lib/threatinator/filters/comments.rb', line 9 def filter?(record) record.data[0] == '#' end |