class Object
it is globally available.
When requiring ‘highline/import’ HighLine adds {#or_ask} to Object so
def or_ask(*args, &details)
-
(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