Class: CarbonMU::Notify

Inherits:
Object
  • Object
show all
Defined in:
lib/interactions/notify.rb

Class Method Summary collapse

Class Method Details

.all(text) ⇒ Object


3
4
5
# File 'lib/interactions/notify.rb', line 3

def self.all(text)
  CarbonMU.server.write_to_all_connections(text + "\n")
end

.one(connection_id, text) ⇒ Object


7
8
9
# File 'lib/interactions/notify.rb', line 7

def self.one(connection_id, text)
  CarbonMU.server.write_to_connection(connection_id, text + "\n")
end