Sha256: ccd71488aa26abc4648297c83e31f3ac74b35150bd616ce272399dfea605e8a3
Contents?: true
Size: 102 Bytes
Versions: 84
Compression:
Stored size: 102 Bytes
Contents
class String def to_boolean ['true', 1, '1', 'yes', 't', 'y'].include?(self.downcase) end end
Version data entries
84 entries across 84 versions & 1 rubygems