Sha256: 2bc47d128b442cda47fb0b6ff8b9c2ad78cce2bcdf65df30610f86e2f4b76f97
Contents?: true
Size: 320 Bytes
Versions: 32
Compression:
Stored size: 320 Bytes
Contents
class String #returns a string with the first letter downcased, the rest is unchanged def downcase_first_letter self[0,1].downcase + self[1..-1] end #downcases the first letter in place def downcase_first_letter! lc_first_letter = self[0,1].downcase self[0] = lc_first_letter self end end
Version data entries
32 entries across 32 versions & 2 rubygems