Class: String

Inherits:
Object show all
Defined in:
lib/kitchen/patches/string.rb

Overview

Monkey patches for String

Direct Known Subclasses

Kitchen::I18nString

Instance Method Summary collapse

Instance Method Details

#uncapitalizeString

Downcases the first letter of self, returning a new string

Returns:



10
11
12
# File 'lib/kitchen/patches/string.rb', line 10

def uncapitalize
  sub(/^[A-Z]/, &:downcase)
end