Class: CliMiami::A

Inherits:
Object
  • Object
show all
Defined in:
lib/cli_miami/ask.rb

Overview

class CliMiami::A

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value


5
6
7
# File 'lib/cli_miami/ask.rb', line 5

def value
  @value
end

Class Method Details

.sk(question, options = {}, &block) ⇒ Object

A.sk API method

See documentation for CliMiami::S.ay The same options are accepted, with the addition of

:readline   - uses Readline instead of standard `gets`
:type       - symbol specifying what type of data is requested from the user
:validate   - hash of validation options

15
16
17
# File 'lib/cli_miami/ask.rb', line 15

def self.sk question, options = {}, &block
  new question, options, &block
end