Class: CodelessCode::Filters::Headers::Integer

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

Overview

Matches fables that have an integer header equal to, less than, or greater than the given parameters.

Instance Method Summary collapse

Methods inherited from Base

#call, #enabled?

Constructor Details

#initialize(key, exact: nil, min: nil, max: nil, exclude: false) ⇒ Integer

:reek:BooleanParameter


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

def initialize(key, exact: nil, min: nil, max: nil, exclude: false)
  super(key, exclude, [exact, :==],
                      [min,   :>=],
                      [max,   :<=])
end