Class: CarbonMU::SayCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/carbonmu/commands/say_command.rb

Instance Attribute Summary

Attributes inherited from Command

#context

Instance Method Summary collapse

Methods inherited from Command

command_classes, inherited, #initialize, syntax, syntaxes

Constructor Details

This class inherits a constructor from CarbonMU::Command

Instance Method Details

#executeObject



8
9
10
# File 'lib/carbonmu/commands/say_command.rb', line 8

def execute
  Notify.all("emits.say", {name: @context.enactor.name, message: @params[:text].light_white})
end