Class: Gist::Helpers
- Inherits:
-
Object
- Object
- Gist::Helpers
- Defined in:
- lib/gist/helpers.rb
Overview
Helper methods for getting input
Class Method Summary collapse
-
.get_password(prompt = 'Password: ') ⇒ Object
Method to wrap a highline call to hide a passworded input.
Class Method Details
.get_password(prompt = 'Password: ') ⇒ Object
Method to wrap a highline call to hide a passworded input
5 6 7 |
# File 'lib/gist/helpers.rb', line 5 def self::get_password(prompt = 'Password: ') ask(prompt) { |q| q.echo = false } end |