class String
Public Instance Methods
to_bool()
click to toggle source
# File lib/maybe_so/core_ext/string.rb, line 2 def to_bool MaybeSo::DEFAULT_TRUTHY_VALUES.include? self.downcase end
# File lib/maybe_so/core_ext/string.rb, line 2 def to_bool MaybeSo::DEFAULT_TRUTHY_VALUES.include? self.downcase end