module Sawaal

Helps a command line application by allowing it to ask multiple choice questions

Track version of the module

Constants

VERSION

Public Class Methods

select(question, options) click to toggle source

Run the selection prompt with selectable options

@example

Sawaal.select('which key is the best?',
             key1: 'key1 is the best',
             key2: 'key2 is the best',
             key3: 'key3 is the best',
             key4: 'key4 is the best')

@return [Symbol] Selected key

# File lib/sawaal.rb, line 27
def select(question, options)
  Sawaal::Selector.choose(question, options)
end