Class: AttrFilters::Filters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/attr_filters/filters/base.rb

Instance Method Summary collapse

Instance Method Details

#call(value, *options) ⇒ Object



6
7
8
9
# File 'lib/attr_filters/filters/base.rb', line 6

def call(value, *options)
  filter(value, *options.reject { |opt| opt == true })
rescue ::StandardError # rubocop:disable Lint/HandleExceptions
end