Method: Xccleanup.prompt_bool
- Defined in:
- lib/xccleanup.rb
.prompt_bool(message) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/xccleanup.rb', line 28 def self.prompt_bool() = + " (y/n) " input = prompt input = input.strip! return input.casecmp("y") == 0 || input.casecmp("yes") == 0 end |