class String
Public Instance Methods
to_boolean()
click to toggle source
# File lib/health-data-standards/ext/string.rb, line 2 def to_boolean ['1', 'true', 't'].include?(self.downcase) end
# File lib/health-data-standards/ext/string.rb, line 2 def to_boolean ['1', 'true', 't'].include?(self.downcase) end