ruby-win32/lib/ruby/site_ruby/1.8/rubygems/user_interaction.rb
# Ask a question.  Returns an answer if connected to a tty, nil
# otherwise.
Ask a question.  Returns an answer if connected to a tty, nil
otherwise.
Ask a question . Returns an answer if connected to a tty nil otherwise .
def ask(question)
      return nil if not @ins.tty?
      @outs.print(question + "  ")
      @outs.flush
      result = @ins.gets
      result.chomp! if result
      result
    end
def ask ( question ) return nil if not @ins . tty? @outs . print ( question + "  " ) @outs . flush result = @ins . gets result . chomp! if result result end
Ask a question.
Ask a question .
question