Method: CodelessCode::Filters::Headers::Base#initialize
- Defined in:
- lib/codeless_code/filters/headers/base.rb
#initialize(key, exclude, *tests) ⇒ Base
Returns a new instance of Base.
24 25 26 27 28 |
# File 'lib/codeless_code/filters/headers/base.rb', line 24 def initialize(key, exclude, *tests) @key = key @exclude = exclude @tests ||= tests.select(&:first).freeze end |