class Meshchat::Ui::Command::Server
Constants
- ONLINE
Public Class Methods
description()
click to toggle source
# File lib/meshchat/ui/command/server.rb, line 7 def self.description 'known server statuses' end
Public Instance Methods
handle()
click to toggle source
# File lib/meshchat/ui/command/server.rb, line 11 def handle case sub_command when ONLINE Display.info Node.online.map(&:as_info).join(', ') || 'no one is online' else Display.info Node.all.map(&:as_info).join(', ') || 'there are no nodes' end end