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:
= Copier Copié!

installation:
=

Versions:

  1. 0.1.0 - April 23, 2020 (6,5 ko)

Dépendances de Development (4):

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

Propriétaires:

Pushed by:

Auteurs:

  • Sampson Crowley

Total de contrôle SHA 256:

855619367d16c8163c6dc6b710af68517875b6b85a7439cdc73d0a9a7ba24743

Total de téléchargements 2 048

Pour cette version 2 048

License:

MIT

Version de Ruby requise: >= 0

Liens: