Class: CodelessCode::Filters::Headers::String

Inherits:
Base
  • Object
show all
Defined in:
lib/codeless_code/filters/headers/string.rb

Overview

Matches fables that have an string header equal to, that starts with, or ends with the given parameters.

Instance Method Summary collapse

Methods inherited from Base

#call, #enabled?

Constructor Details

#initialize(key, exact: nil, start_with: nil, end_with: nil, exclude: false) ⇒ String

:reek:BooleanParameter



25
26
27
28
29
30
# File 'lib/codeless_code/filters/headers/string.rb', line 25

def initialize(key, exact: nil, start_with: nil, end_with: nil,
               exclude: false)
  super(key, exclude, [exact,      :==],
                      [start_with, :start_with?],
                      [end_with,   :end_with?])
end