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-4.3.5 lib/health-data-standards/ext/string.rb
health-data-standards-4.3.4 lib/health-data-standards/ext/string.rb
health-data-standards-4.3.3 lib/health-data-standards/ext/string.rb
health-data-standards-4.3.2 lib/health-data-standards/ext/string.rb
health-data-standards-4.3.1 lib/health-data-standards/ext/string.rb
health-data-standards-4.3.0 lib/health-data-standards/ext/string.rb
health-data-standards-4.2.0 lib/health-data-standards/ext/string.rb
health-data-standards-4.1.0 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.6 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.5 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.4 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.3 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.2 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.1 lib/health-data-standards/ext/string.rb
health-data-standards-4.0.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.7.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.6.1 lib/health-data-standards/ext/string.rb
health-data-standards-3.5.3 lib/health-data-standards/ext/string.rb
health-data-standards-3.5.2 lib/health-data-standards/ext/string.rb
health-data-standards-3.5.1 lib/health-data-standards/ext/string.rb