Sha256: 5ed521a2a358a8002871a1a6c1e9fe26626cfbdc87fe93d5dca179a7106d6cb2
Contents?: true
Size: 275 Bytes
Versions: 3
Compression:
Stored size: 275 Bytes
Contents
class GitCleanup module Helper def self.boolean(question) puts "#{question} (y/n)" answer = STDIN.gets.chomp if answer == 'y' yield elsif answer == 'n' return false else boolean(question) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git-cleanup-0.1.2 | lib/git-cleanup/helper.rb |
git-cleanup-0.1.1 | lib/git-cleanup/helper.rb |
git-cleanup-0.1.0 | lib/git-cleanup/helper.rb |