Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/string_to_boolean.rb

Instance Method Summary collapse

Instance Method Details

#to_boolObject



4
5
6
# File 'lib/string_to_boolean.rb', line 4

def to_bool
  true_boolean_strings.include?(self)
end