Module: Toller::Filters::Mutators::Boolean
- Defined in:
- lib/toller/filters/mutators/boolean.rb
Overview
Boolean filter mutator
Class Method Summary collapse
Class Method Details
.call(value) ⇒ Object
12 13 14 |
# File 'lib/toller/filters/mutators/boolean.rb', line 12 def call(value) %w[1 t true y yes].include?(value) end |