# File lib/facet/string/at_rand%21.rb, line 10 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