Class | Object |
In: |
lib/highline/import.rb
|
Parent: | Object |
Tries this object as a first_answer for a HighLine::Question. See that attribute for details.
Warning: This Object will be passed to String() before set.
# File lib/highline/import.rb, line 36 36: def or_ask( *args, &details ) 37: ask(*args) do |question| 38: question.first_answer = String(self) unless nil? 39: 40: details.call(question) unless details.nil? 41: end 42: end