lib/tty/prompt.rb
# Invoke a question type of prompt
#
# @example
#   prompt = TTY::Prompt.new
#   prompt.invoke_question(Question, "Your name? ")
#
# @return [String]
#
# @api public
Invoke a question type of prompt
Invoke a question type of prompt
def invoke_question(object, message, **options, &block)
      options[:messages] = self.class.messages
      question = object.new(self, options)
      question.(message, &block)
    end
def invoke_question ( object , message , ** options , & block ) options [ :messages ] = self . class . messages question = object . new ( self , options ) question . ( message , & block ) end
Invoke a question type of prompt
Invoke a question type of prompt
None
String
object
message
options
block
example
prompt = TTY::Prompt.new prompt.invoke_question(Question, "Your name.
prompt = TTY :: Prompt . new prompt . invoke_question ( Question " Your name .
api
None