class ProxyTester::Environment
Attributes
stderr[R]
stdin[R]
Public Class Methods
new(stdin = $stdin, stderr = $stderr)
click to toggle source
# File lib/proxy_tester/environment.rb, line 11 def initialize(stdin = $stdin, stderr = $stderr) @stdin = stdin @stderr = stderr end
Public Instance Methods
password()
click to toggle source
# File lib/proxy_tester/environment.rb, line 16 def password stderr.printf "Please enter password: " @password = stdin.readline.chomp end