Sha256: a1b555356542a3775ec9d3f36e5ebcbe75c8ea267112bdcc297b35526fbee150
Contents?: true
Size: 296 Bytes
Versions: 5
Compression:
Stored size: 296 Bytes
Contents
# frozen_string_literal: true # Some useful extensions on string class String def first_uppercase return self unless length > 2 "#{self[0].upcase}#{self[1, length]}" end def first_lowercase return self unless length > 2 "#{self[0].downcase}#{self[1, length]}" end end
Version data entries
5 entries across 5 versions & 1 rubygems