gistlib
other ruby categories
string code snippets in ruby
check if string starts with a timestamp in ruby
create a password with at least one uppercase letter in ruby
create a password with numbers in ruby
create a sha1 hash from a string in ruby
create a sha256 hash from a string in ruby
create a template string in ruby
find the first character in a string in ruby
find the first index of a character in a string in ruby
find the first index of a substring in a string in ruby
find the kth character in a string in ruby
find the kth longest word in a string in ruby
find the last index of a substring in a string in ruby
format a date in to the format month day, year hour:minute:second am/pm in ruby
generate a random string in ruby
join an array of characters into a string in ruby
left pad with space in ruby
remove a substring from a string in ruby
replace a character in a string in ruby
shuffle a string in ruby
split a string into an array of characters in ruby
split a string into an array of words in ruby
write a method to return true if the input string equals 'cool' otherwise return false in ruby
gistlib
by LogSnag