Class: Capistrano::Configuration::Question
- Inherits:
-
Object
- Object
- Capistrano::Configuration::Question
- Defined in:
- lib/capistrano/configuration/question.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(key, default, options = {}) ⇒ Question
constructor
A new instance of Question.
Constructor Details
#initialize(key, default, options = {}) ⇒ Question
Returns a new instance of Question.
4 5 6 7 8 |
# File 'lib/capistrano/configuration/question.rb', line 4 def initialize(key, default, ={}) @key = key @default = default @options = end |
Instance Method Details
#call ⇒ Object
10 11 12 13 |
# File 'lib/capistrano/configuration/question.rb', line 10 def call ask_question value_or_default end |