class Object

def or_ask(*args, &details)

Returns:
  • (String) - answer

Parameters:
  • details (lambda) -- block to be called with the question
  • args (Array<#to_s>) --
def or_ask(*args, &details)
  ask(*args) do |question|
    question.first_answer = String(self)
    yield(question) if details
  end
end