Class Genpasswd
In: lib/genpasswd.rb
Parent: Object

Methods

new  

Public Class methods

[Source]

# File lib/genpasswd.rb, line 10
  def initialize ( length=8 )
    str = new
    length.times do
      str << ('!'..'~').choose
    end
    str
  end

[Validate]