# File lib/password.rb, line 185 def Password.get(message="Password: ") begin if $stdin.tty? Password.echo false print message if message end pw = Password.new( $stdin.gets || "" ) pw.chomp! ensure if $stdin.tty? Password.echo true print "\n" end end end