class String

Public Instance Methods

random_cases() click to toggle source
# File lib/random_cases/string.rb, line 2
def random_cases
        self.gsub(/./){
        |c| rand(2)>0 ? c : c.swapcase 
        }
end