class Meshchat::Ui::Display::Base

Public Instance Methods

add_line(_line) click to toggle source

output a generic line of text

# File lib/meshchat/ui/display/base.rb, line 12
def add_line(_line)
  raise 'overload this method'
end
alert(_line) click to toggle source

really try to get the user's attention

# File lib/meshchat/ui/display/base.rb, line 37
def alert(_line)
  raise 'overload this method'
end
chat(_line) click to toggle source

general chat message

# File lib/meshchat/ui/display/base.rb, line 47
def chat(_line)
  raise 'overload this method'
end
emote(_line) click to toggle source

an emote

# File lib/meshchat/ui/display/base.rb, line 22
def emote(_line)
  raise 'overload this method'
end
info(_line) click to toggle source

server info or other ignorable information

# File lib/meshchat/ui/display/base.rb, line 27
def info(_line)
  raise 'overload this method'
end
log(_msg) click to toggle source

log a message

# File lib/meshchat/ui/display/base.rb, line 52
def log(_msg)
  raise 'overload this method'
end
start() click to toggle source

instantiate the UI, startup the CLI

# File lib/meshchat/ui/display/base.rb, line 7
def start
  raise 'overload this method'
end
success(_line) click to toggle source

a happy message to affirm the user something succeded

# File lib/meshchat/ui/display/base.rb, line 42
def success(_line)
  raise 'overload this method'
end
warning(_line) click to toggle source

warning message that the user may or may not care about

# File lib/meshchat/ui/display/base.rb, line 32
def warning(_line)
  raise 'overload this method'
end
whisper(_line) click to toggle source

formatter for a whisper message

# File lib/meshchat/ui/display/base.rb, line 17
def whisper(_line)
  raise 'overload this method'
end