More detailed description
CubyHelpers.yes?(variable = self)
Tests if the variable means "yes", returning true or false.
If no variable is provided, tests self
Yes is recognized when the argument is:
yes?(:on) => true yes?("No") => false yes?("foo") => false # and now the self-test "yEs".yes? => true
CubyHelpers.no?(variable = self)
Tests if the variable means "no", returning true or false. For more info, see yes?
No is recognized when the argument is:
CubyHelpers.yes_no?(variable = self)
Returns true if the argument means yes (using yes? ),
returns false if the argument means no (using no? ),
raises exception otherwise.