Class: Prompter
- Inherits:
-
Object
- Object
- Prompter
- Extended by:
- Methods
- Includes:
- Methods
- Defined in:
- lib/prompter.rb
Overview
Defined Under Namespace
Modules: Methods
Constant Summary collapse
- VERSION =
File.read(File.('../../VERSION', __FILE__)).strip
Class Attribute Summary collapse
-
.dye_styles ⇒ Object
Returns the value of attribute dye_styles.
Attributes included from Methods
Instance Method Summary collapse
-
#initialize(opts = {}) {|| ... } ⇒ Prompter
constructor
Standard constructor, also accepts a block.
Methods included from Methods
ask, ask_multiline, choose, choose_index, choose_many, choose_many_index, no?, say, say_notice, say_warning, yes?, yes_no?
Constructor Details
#initialize(opts = {}) {|| ... } ⇒ Prompter
Standard constructor, also accepts a block
27 28 29 30 31 |
# File 'lib/prompter.rb', line 27 def initialize(opts={}) @prefix = opts[:prefix] @echo = opts[:echo] || true yield self if block_given? end |
Class Attribute Details
.dye_styles ⇒ Object
Returns the value of attribute dye_styles.
9 10 11 |
# File 'lib/prompter.rb', line 9 def dye_styles @dye_styles end |