Sha256: 70df5d55f9fd697c6c3ef93c7453175b703bd4ac8f4bffe5fab6d202032c0af2
Contents?: true
Size: 303 Bytes
Versions: 5
Compression:
Stored size: 303 Bytes
Contents
class Fab # Fab a username. # # Options: # # * chars: a..z # * size: rand(10..30) [actual size may be less because we strip the string] # # @returns [String] a username # def username(options = {}) (options[:chars] || AZ).sample(options[:size] || rand(5..15)).join end end
Version data entries
5 entries across 5 versions & 1 rubygems