class Object

Public Instance Methods

ask?(*question) click to toggle source

helper functions


    # File bin/conversio
 99 def ask?(*question)
100   print question.join(' '), '? (y/n) > '
101   return true if STDIN.gets.chomp.downcase.eql?('y')
102   return false
103 end
overwrite?(*str) click to toggle source
    # File bin/conversio
105 def overwrite?(*str)
106   return ask?('Overwrite',str)
107 end