class Meshchat::Ui::Command::Online

Public Class Methods

description() click to toggle source
# File lib/meshchat/ui/command/online.rb, line 6
def self.description
  'shows online users'
end

Public Instance Methods

handle() click to toggle source
# File lib/meshchat/ui/command/online.rb, line 10
def handle
  msg = Node.online.map(&:as_info).join(', ').presence || 'no one is online'

  Display.info msg
end