module ExtendsBool
Constants
- FALSE_VALUES
- VERSION
Public Instance Methods
to_bool()
click to toggle source
Returns a boolean value, according the object value.
# File lib/extends_bool.rb, line 8 def to_bool value = self value.downcase! if value.is_a?(String) !FALSE_VALUES.include?(self) end
Also aliased as: to_b, to_boolean