Class: MeshChat::Display::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/meshchat/display/base.rb

Instance Method Summary collapse

Instance Method Details

#add_line(_line) ⇒ Object

output a generic line of text



11
12
13
# File 'lib/meshchat/display/base.rb', line 11

def add_line(_line)
  fail 'overload this method'
end

#alert(_line) ⇒ Object

really try to get the user’s attention



31
32
33
# File 'lib/meshchat/display/base.rb', line 31

def alert(_line)
  fail 'overload this method'
end

#chat(_line) ⇒ Object

general chat message



41
42
43
# File 'lib/meshchat/display/base.rb', line 41

def chat(_line)
  fail 'overload this method'
end

#info(_line) ⇒ Object

server info or other ignorable information



21
22
23
# File 'lib/meshchat/display/base.rb', line 21

def info(_line)
  fail 'overload this method'
end

#log(_msg) ⇒ Object

log a message



48
49
50
# File 'lib/meshchat/display/base.rb', line 48

def log(_msg)
  fail 'overload this method'
end

#startObject

instantiate the UI, startup the CLI



6
7
8
# File 'lib/meshchat/display/base.rb', line 6

def start
  fail 'overload this method'
end

#success(_line) ⇒ Object

a happy message to affirm the user something succeded



36
37
38
# File 'lib/meshchat/display/base.rb', line 36

def success(_line)
  fail 'overload this method'
end

#warning(_line) ⇒ Object

warning message that the user may or may not care about



26
27
28
# File 'lib/meshchat/display/base.rb', line 26

def warning(_line)
  fail 'overload this method'
end

#whisper(_line) ⇒ Object

formatter for a whisper message



16
17
18
# File 'lib/meshchat/display/base.rb', line 16

def whisper(_line)
  fail 'overload this method'
end