module StringShuffle

Constants

VERSION

Public Class Methods

shuffle(string) click to toggle source
# File lib/string_shuffle.rb, line 5
def self.shuffle(string)
  string.chars.shuffle.join
end
shuffle_remove_spaces(string) click to toggle source
# File lib/string_shuffle.rb, line 9
def self.shuffle_remove_spaces(string)
  shuffle(string).gsub(/\s+/, '')
end