0.0
No release in over 3 years
Adds `yes`, `yes_please`, `no`, `no_thanks` aliases for true and false. This gem is for fun and wouldn't break a production environment, but it's not really intended for that either
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Cool Bool Tools For Bool Fools

Get out of the kiddie pool using just true and false and dive into yes and no

def can_do_action?
  return no if lacks_ability?
  
  yes
end

You can even write your code to be more polite:

def should_update_some_attribute
  return no_thanks if some_condition?

  yes_please 
end

If you really want to get into the deep end though, get rid of all your !! and use to_bool

def does_my_pool_exist
   my_pool.to_bool
end