Class: AttrFilters::Filters::Base
- Inherits:
-
Object
- Object
- AttrFilters::Filters::Base
- Defined in:
- lib/attr_filters/filters/base.rb
Direct Known Subclasses
Capitalize, Date, Downcase, LettersOnly, NumbersOnly, Squeeze, Trim, Upcase
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, *) filter(value, *.reject { |opt| opt == true }) rescue ::StandardError # rubocop:disable Lint/HandleExceptions end |