Class: Meshchat::Ui::Command::Share

Inherits:
Base
  • Object
show all
Defined in:
lib/meshchat/ui/command/share.rb

Constant Summary

Constants inherited from Base

Base::ADD, Base::ALL_CHAT_LOCK, Base::BIND, Base::CHAT, Base::CONFIG, Base::DISPLAY, Base::EMOTE, Base::EXIT, Base::EXPORT, Base::HELP, Base::IDENTITY, Base::IMPORT, Base::IRB, Base::OFFLINE, Base::ONLINE, Base::PING, Base::PING_ALL, Base::QUIT, Base::REMOVE, Base::RM, Base::ROLL, Base::SEND_DISCONNECT, Base::SERVER, Base::SERVERS, Base::SET, Base::SHARE, Base::WHISPER_LOCK, Base::WHO

Instance Attribute Summary

Attributes inherited from Base

#_input, #_input_factory, #_message_dispatcher, #_message_factory

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Meshchat::Ui::Command::Base

Class Method Details

.descriptionObject



6
7
8
# File 'lib/meshchat/ui/command/share.rb', line 6

def self.description
  'exports your identity to a json file to give to another user'
end

Instance Method Details

#handleObject



10
11
12
# File 'lib/meshchat/ui/command/share.rb', line 10

def handle
  APP_CONFIG.user.share
end