class String
Some useful extensions on string
Public Instance Methods
first_lowercase()
click to toggle source
# File lib/pr_changelog/extensions/string.rb, line 11 def first_lowercase return self unless length > 2 "#{self[0].downcase}#{self[1, length]}" end
first_uppercase()
click to toggle source
# File lib/pr_changelog/extensions/string.rb, line 5 def first_uppercase return self unless length > 2 "#{self[0].upcase}#{self[1, length]}" end