coerce_boolean 0.1.0
Adds a default #to_bool method to Object and adds the CoerceBoolean class to parse boolean like values Examples: - CoerceBoolean.from("false") # false - CoerceBoolean.from("true") # true - CoerceBoolean.from(1) # true - CoerceBoolean.from(0) # false
Gemfile:
=
instalar:
=
Versões:
- 0.1.0 April 23, 2020 (6,5 KB)