module Cyoi::Cli::Helpers::Interactions

Public Instance Methods

bold() click to toggle source
# File lib/cyoi/cli/helpers/interactions.rb, line 6
def bold; "\033[1m" end
clear() click to toggle source
# File lib/cyoi/cli/helpers/interactions.rb, line 5
def clear; "\033[0m" end
cyan() click to toggle source
# File lib/cyoi/cli/helpers/interactions.rb, line 4
def cyan; "\033[36m" end
green() click to toggle source
# File lib/cyoi/cli/helpers/interactions.rb, line 8
def green; "\033[32m" end
hl() click to toggle source

Helper to access HighLine for ask & menu prompts

# File lib/cyoi/cli/helpers/interactions.rb, line 12
def hl
  @hl ||= HighLine.new(@stdin, @stdout)
end
red() click to toggle source
# File lib/cyoi/cli/helpers/interactions.rb, line 7
def red; "\033[31m" end
yellow() click to toggle source
# File lib/cyoi/cli/helpers/interactions.rb, line 9
def yellow; "\033[33m" end