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:
= Copy to clipboard Copied!

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:

855619367d16c8163c6dc6b710af68517875b6b85a7439cdc73d0a9a7ba24743

Total downloads 2,035

For this version 2,035

License:

MIT

Required Ruby Version: >= 0

Links: