Class: CodelessCode::Filters::Headers::String
- 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
-
#initialize(key, exact: nil, start_with: nil, end_with: nil, exclude: false) ⇒ String
constructor
:reek:BooleanParameter.
Methods inherited from Base
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 |