Class: CarbonMU::Notify
- Inherits:
-
Object
- Object
- CarbonMU::Notify
- Defined in:
- lib/carbonmu/interactions/notify.rb
Class Method Summary collapse
Class Method Details
.all(text, opts = {}) ⇒ Object
3 4 5 |
# File 'lib/carbonmu/interactions/notify.rb', line 3 def self.all(text, opts = {}) CarbonMU.server.connections.each { |c| one(c, text, opts) } end |
.one(connection, text, opts = {}) ⇒ Object
7 8 9 |
# File 'lib/carbonmu/interactions/notify.rb', line 7 def self.one(connection, text, opts = {}) connection.write_translated(text, opts) end |