module Configliere::Prompt
Method to prompt for
Public Instance Methods
prompt_for(attr, hint=nil)
click to toggle source
Retrieve the given param, or prompt for it
# File lib/configliere/prompt.rb, line 20 def prompt_for attr, hint=nil return self[attr] if has_key?(attr) hint ||= definition_of(attr, :description) hint = " (#{hint})" if hint self[attr] = ask("#{attr}#{hint}? ") end