Class: Threatinator::Filters::Comments

Inherits:
Threatinator::Filter show all
Defined in:
lib/threatinator/filters/comments.rb

Overview

Filters out any lines of text that begin with a comment ‘#’

Instance Method Summary collapse

Instance Method Details

#filter?(record) ⇒ Boolean

Returns true if filtered, false otherwise.

Parameters:

Returns:

  • (Boolean)

    true if filtered, false otherwise.



9
10
11
# File 'lib/threatinator/filters/comments.rb', line 9

def filter?(record)
  record.data[0] == '#'
end