Method: String#to_bool

Defined in:
lib/mark_facets/ruby/string.rb

#to_boolObject Also known as: to_boolean



16
17
18
19
20
21
22
# File 'lib/mark_facets/ruby/string.rb', line 16

def to_bool
  case self.downcase
  when 'n', 'no', 'f', 'false', 'nay'
    return false
  end
  return true
end