Sha256: ec720e7a951810f18e7c7a9b4c0d7151e6f3b77fef2cc7cfa8c18834389711ad

Contents?: true

Size: 86 Bytes

Versions: 64

Compression:

Stored size: 86 Bytes

Contents

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

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
health-data-standards-3.5.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.6 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.5 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.4 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.3 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.2 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.1 lib/health-data-standards/ext/string.rb
health-data-standards-3.4.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.12 lib/health-data-standards/ext/string.rb
health-data-standards-3.3.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.11 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.10 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.8 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.7 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.6 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.5 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.4 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.3 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.2 lib/health-data-standards/ext/string.rb
health-data-standards-3.2.1 lib/health-data-standards/ext/string.rb