module Locum::Console
Private Instance Methods
cn()
click to toggle source
# File lib/locum/console.rb, line 13 def cn @cn ||= HighLine.new end
display_error(e)
click to toggle source
# File lib/locum/console.rb, line 8 def display_error e cn = HighLine.new cn.say("\n<%= color('Произошла ошибка:', RED) %> #{e.message}") end
s_in(s)
click to toggle source
# File lib/locum/console.rb, line 21 def s_in(s) cn.say("<%= color('<-', CYAN) %> #{s}") end
s_out(s)
click to toggle source
# File lib/locum/console.rb, line 17 def s_out(s) cn.say("\n<%= color('->', GREEN) %> #{s}") end