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:
=

install:
=

Versions:

  1. 0.1.0 April 23, 2020 (6.5 KB)

Development Dependencies (4):

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

Owners:

Pushed by:

Authors:

  • Sampson Crowley

SHA 256 checksum:

=

Total downloads 2,148

For this version 2,148

Version Released:

License:

MIT

Required Ruby Version: >= 0

Links: