module Bizbool::String

Constants

FARRAY
TARRAY

Public Instance Methods

to_b() click to toggle source
# File lib/bizbool/string.rb, line 5
def to_b
  chars = self.strip.downcase
  return true  if TARRAY.include?(chars)
  return false if FARRAY.include?(chars)
end