Class: Shh::Prompt
- Inherits:
-
Object
- Object
- Shh::Prompt
- Defined in:
- lib/shh/prompt.rb
Instance Method Summary collapse
Instance Method Details
#ask(text, params = {}) ⇒ Object
5 6 7 8 |
# File 'lib/shh/prompt.rb', line 5 def ask text, params={} echo = params[:silent] ? false : true Kernel.ask(text) { |q| q.echo = echo } end |
#say(text = '') ⇒ Object
10 11 12 |
# File 'lib/shh/prompt.rb', line 10 def say text='' puts text end |