Sha256: e782ff83e81f2b07112251a99f90748c00a41fb63f61f57a92f0b69b0e64df37
Contents?: true
Size: 464 Bytes
Versions: 4
Compression:
Stored size: 464 Bytes
Contents
require 'tty/prompt' require 'colorize' module Hitcher module UserPrompt def tty if @tty.nil? @tty = TTY::Prompt.new end @tty end def question(str) STDOUT.print(str) end def notice(str) STDOUT.print(str.light_blue) end def yes(str) STDOUT.puts(str.green) end def no(str) STDOUT.puts(str.yellow) end def fatal(str) STDERR.puts(str.red) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
Hitcher-0.1.3 | lib/hitcher/user_prompt.rb |
Hitcher-0.1.2 | lib/hitcher/user_prompt.rb |
Hitcher-0.1.1 | lib/hitcher/user_prompt.rb |
Hitcher-0.1.0 | lib/hitcher/user_prompt.rb |