RubyGems Navigation menu

booleans 0.1.1

This gem adds a new method called `Boolean`, analogous to builtins like `Integer` or `String`, which converts a Ruby value to either `true` or `false` based on its truthiness. It also has optional core extensions that add a `to_bool` method to all Ruby objects and allow you to check if a value is boolean with `val.is_a?(Boolean)`.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.1.1 - January 10, 2024 (7 KB)
  2. 0.1.0 - October 20, 2023 (7 KB)

Owners:

Pushed by:

Authors:

  • Mateusz Drewniak

SHA 256 checksum:

ee853f826d9cd718ed012270d2a76f8f916e3bb7b611c492e44b7110195bb604

Total downloads 1,984

For this version 534

License:

MIT

Required Ruby Version: >= 3.0.0

Links: