Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/health-data-standards/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#to_booleanObject



2
3
4
# File 'lib/health-data-standards/ext/string.rb', line 2

def to_boolean
  ['1', 'true', 't'].include?(self.downcase)
end