lib/configliere/prompt.rb
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
# Retrieve the given param, or prompt for it
Retrieve the given param, or prompt for it
Retrieve the given param or prompt for it
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
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
Retrieve the given param, or prompt for it
Retrieve the given param or prompt for it
attr
hint