Class: EY::CLI::UI::Prompter::Mock
Instance Attribute Summary collapse
-
#questions ⇒ Object
readonly
Returns the value of attribute questions.
Instance Method Summary collapse
Instance Attribute Details
#questions ⇒ Object (readonly)
Returns the value of attribute questions.
16 17 18 |
# File 'lib/engineyard/cli/ui.rb', line 16 def questions @questions end |
Instance Method Details
#ask(*args, &block) ⇒ Object
11 12 13 14 15 |
# File 'lib/engineyard/cli/ui.rb', line 11 def ask(*args, &block) @questions ||= [] @questions << args.first @answers.pop end |
#next_answer=(arg) ⇒ Object
7 8 9 10 |
# File 'lib/engineyard/cli/ui.rb', line 7 def next_answer=(arg) @answers ||= [] @answers << arg end |