class String

Public Instance Methods

thanoscase() click to toggle source
# File lib/demo_thanoscase/string.rb, line 11
def thanoscase
  dup.thanoscase!
end
thanoscase!() click to toggle source
# File lib/demo_thanoscase/string.rb, line 4
def thanoscase!
  return self if empty?
  half_universe = length/2
  half_universe.times { slice!(rand(length)) }
  self
end