class Threatinator::Filters::Whitespace
Filters
on any lines of text that consist entirely of whitespace
Public Class Methods
new()
click to toggle source
# File lib/threatinator/filters/whitespace.rb, line 7 def initialize() @re = /^\s*$/ end
Public Instance Methods
filter?(record)
click to toggle source
@param [Threatinator::Record] record The record to filter @return [Boolean] true if filtered, false otherwise.
# File lib/threatinator/filters/whitespace.rb, line 13 def filter?(record) !! @re.match(record.data) end