class Object
Public Instance Methods
ask(question)
click to toggle source
# File lib/funkenplate.rb, line 26 def ask(question) puts say_status :QUESTION, question, :blue print ' ' * 16 $stdin.gets.strip end
shout_status(*args)
click to toggle source
# File lib/funkenplate.rb, line 20 def shout_status(*args) puts say_status(*args) puts end
yes?(question)
click to toggle source
# File lib/funkenplate.rb, line 33 def yes?(question) answer = ask("#{question} (ENTER: yes)").downcase puts answer == '' or answer == "\n" or answer == 'y' or answer == 'yes' or answer == 'j' or answer == 'ja' end