Class: Meshchat::Ui::Display::Base
- Inherits:
-
Object
- Object
- Meshchat::Ui::Display::Base
- Defined in:
- lib/meshchat/ui/display/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#add_line(_line) ⇒ Object
output a generic line of text.
-
#alert(_line) ⇒ Object
really try to get the user’s attention.
-
#chat(_line) ⇒ Object
general chat message.
-
#emote(_line) ⇒ Object
an emote.
-
#info(_line) ⇒ Object
server info or other ignorable information.
-
#log(_msg) ⇒ Object
log a message.
-
#start ⇒ Object
instantiate the UI, startup the CLI.
-
#success(_line) ⇒ Object
a happy message to affirm the user something succeded.
-
#warning(_line) ⇒ Object
warning message that the user may or may not care about.
-
#whisper(_line) ⇒ Object
formatter for a whisper message.
Instance Method Details
#add_line(_line) ⇒ Object
output a generic line of text
12 13 14 |
# File 'lib/meshchat/ui/display/base.rb', line 12 def add_line(_line) raise 'overload this method' end |
#alert(_line) ⇒ Object
really try to get the user’s attention
37 38 39 |
# File 'lib/meshchat/ui/display/base.rb', line 37 def alert(_line) raise 'overload this method' end |
#chat(_line) ⇒ Object
general chat message
47 48 49 |
# File 'lib/meshchat/ui/display/base.rb', line 47 def chat(_line) raise 'overload this method' end |
#emote(_line) ⇒ Object
an emote
22 23 24 |
# File 'lib/meshchat/ui/display/base.rb', line 22 def emote(_line) raise 'overload this method' end |
#info(_line) ⇒ Object
server info or other ignorable information
27 28 29 |
# File 'lib/meshchat/ui/display/base.rb', line 27 def info(_line) raise 'overload this method' end |
#log(_msg) ⇒ Object
log a message
52 53 54 |
# File 'lib/meshchat/ui/display/base.rb', line 52 def log(_msg) raise 'overload this method' end |
#start ⇒ Object
instantiate the UI, startup the CLI
7 8 9 |
# File 'lib/meshchat/ui/display/base.rb', line 7 def start raise 'overload this method' end |
#success(_line) ⇒ Object
a happy message to affirm the user something succeded
42 43 44 |
# File 'lib/meshchat/ui/display/base.rb', line 42 def success(_line) raise 'overload this method' end |
#warning(_line) ⇒ Object
warning message that the user may or may not care about
32 33 34 |
# File 'lib/meshchat/ui/display/base.rb', line 32 def warning(_line) raise 'overload this method' end |
#whisper(_line) ⇒ Object
formatter for a whisper message
17 18 19 |
# File 'lib/meshchat/ui/display/base.rb', line 17 def whisper(_line) raise 'overload this method' end |