Sha256: 8ba9d381eac595b36325db7dc7256737d16f7b61612ebe4403806097501b7693
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module Stevenson module Input class Password < Text include Base def collect! # Ask the user the question and apply the appropriate options answer = ask(@prompt) do |q| q.default = default q.echo = @is_secret q.limit = @limit if @limit end # Return the user's answer answer.to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stevenson-1.0.1 | lib/stevenson/input/password.rb |