Sha256: 784aa905b2a2d4b91834a559612883caac85396c998a17135d0bfe1185b57f97

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 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.new(options)

      yield resp
      break unless resp.invalid?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
interactive-0.2.0 lib/interactive/question_with_eager_full_explanation.rb