class Meshchat::Ui::Command::Emote
Public Class Methods
description()
click to toggle source
# File lib/meshchat/ui/command/emote.rb, line 6 def self.description 'send an emote to the current chat' end
new(input, message_dispatcher, message_factory, input_factory)
click to toggle source
Calls superclass method
Meshchat::Ui::Command::Base::new
# File lib/meshchat/ui/command/emote.rb, line 10 def initialize(input, message_dispatcher, message_factory, input_factory) super input = input.chomp emote_message = input.gsub(/\A\/me /, '').chomp @_input = emote_message end
Public Instance Methods
show_myself(message)
click to toggle source
# File lib/meshchat/ui/command/emote.rb, line 17 def show_myself(message) Display.emote message.display end