method

ask

ruby latest stable - Class: Gem::StreamUI
ask(question)
public

Ask a question. Returns an answer if connected to a tty, nil otherwise.