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.2.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.1.1 lib/health-data-standards/ext/string.rb
health-data-standards-3.1.0 lib/health-data-standards/ext/string.rb
health-data-standards-3.0.6 lib/health-data-standards/ext/string.rb
health-data-standards-3.0.5 lib/health-data-standards/ext/string.rb
health-data-standards-3.0.4 lib/health-data-standards/ext/string.rb
health-data-standards-3.0.3 lib/health-data-standards/ext/string.rb
health-data-standards-2.2.1 lib/health-data-standards/ext/string.rb
health-data-standards-2.2.0 lib/health-data-standards/ext/string.rb
health-data-standards-2.1.4 lib/health-data-standards/ext/string.rb
health-data-standards-2.1.3 lib/health-data-standards/ext/string.rb
health-data-standards-2.1.2 lib/health-data-standards/ext/string.rb
health-data-standards-2.1.1 lib/health-data-standards/ext/string.rb
health-data-standards-2.1.0 lib/health-data-standards/ext/string.rb
health-data-standards-2.0.0 lib/health-data-standards/ext/string.rb
health-data-standards-1.0.1 lib/health-data-standards/ext/string.rb
health-data-standards-1.0.0 lib/health-data-standards/ext/string.rb
health-data-standards-0.8.1 lib/health-data-standards/ext/string.rb
health-data-standards-0.8.0 lib/health-data-standards/ext/string.rb
health-data-standards-0.7.1 lib/health-data-standards/ext/string.rb