RubyGems Navigation menu

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:

  1. 0.1.0 April 23, 2020 (6,5 KB)

Development Dependencies (4):

activesupport ~> 6.0
minitest ~> 5.1
rake ~> 13.0

Donos:

Pushed by:

Autores:

  • Sampson Crowley

SHA 256 checksum:

=

Total de downloads 2.159

Desta versão 2.159

Versão lançada:

Licença:

MIT

Versão Requerida do Ruby: >= 0

Links: