Skip to content

About

Small boolean utils

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

is-boolean

GitHub License Gem Version Ruby Coverage

Small boolean utils

false < true
false.to_i == 0
true.to_i == 1
false.is_a?(Boolean) == true
true.is_a?(Boolean) == true

Also you can use === operator and case when clause.

case value
when Boolean
  "Boolean"
else
  "Other"
end

About

Small boolean utils

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages