Sha256: 04b5ed17df6cf852eaf3fff0d5084a8542cfe430bb4bc3e185acd9e9e2fd19bb
Contents?: true
Size: 319 Bytes
Versions: 2
Compression:
Stored size: 319 Bytes
Contents
class QuestionWithEagerFullExplanation < SimpleDelegator def ask_and_wait_for_valid_response(&block) loop do puts "#{question} #{options.shortcuts_string}" puts options.shortcuts_meanings resp = Interactive::Response(options) yield resp break unless resp.invalid? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
interactive-0.4.0 | lib/interactive/question_with_eager_full_explanation.rb |
interactive-0.3.0 | lib/interactive/question_with_eager_full_explanation.rb |