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