class String
String
: shrink to “”
Public Instance Methods
retry?()
click to toggle source
# File lib/rantly/shrinks.rb, line 38 def retry? false end
shrink()
click to toggle source
# File lib/rantly/shrinks.rb, line 29 def shrink shrunk = dup unless empty? idx = Random.rand(size) shrunk[idx] = '' end shrunk end
shrinkable?()
click to toggle source
# File lib/rantly/shrinks.rb, line 42 def shrinkable? self != '' end