Module: VimRename
- Defined in:
- lib/vim_rename.rb,
lib/vim_rename/options.rb,
lib/vim_rename/version.rb,
lib/vim_rename/file_data.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.yes_no(message) ⇒ Object
6 7 8 9 10 |
# File 'lib/vim_rename.rb', line 6 def self.yes_no() puts "#{} [Yn]: " answer = STDIN.gets.chomp.downcase %w{y yes}.include?(answer) || answer.empty? end |