# File lib/facet/string/at_rand.rb, line 25 def at_rand!(n=nil) separator = /\n+/ if separator == '' separator = /\s+/ unless separator n = n.to_i s,e = 0,0 n.times { e = index( separator, s ) ; s = e+1 } r = self[s...e] self[s...e] = '' return r end