Module: Validations::Predicates::Bool::Methods
- Included in:
- Validations::Predicates::Bool
- Defined in:
- lib/endpoint_flux/tasks/endpoint_flux/generators/endpoint_flux/validations/predicates/bool.rb
Instance Method Summary collapse
Instance Method Details
#bool?(value) ⇒ Boolean
5 6 7 8 9 |
# File 'lib/endpoint_flux/tasks/endpoint_flux/generators/endpoint_flux/validations/predicates/bool.rb', line 5 def bool?(value) ![true, false, 'true', 'false', '0', '1'].find do |item| value == item end.nil? end |