Class: CarbonMU::Connection
- Inherits:
-
Object
- Object
- CarbonMU::Connection
- Defined in:
- lib/carbonmu/connection.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#player ⇒ Object
Returns the value of attribute player.
Instance Method Summary collapse
-
#initialize(id) ⇒ Connection
constructor
TODO probably need edge type (:telnet, :ssl, etc), or at least interactive true/false.
- #write_translated(msg, args = {}) ⇒ Object
Constructor Details
#initialize(id) ⇒ Connection
TODO probably need edge type (:telnet, :ssl, etc), or at least interactive true/false
8 9 10 11 12 |
# File 'lib/carbonmu/connection.rb', line 8 def initialize(id) @id = id @locale = "en" # TODO configurable default locale @player = nil end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/carbonmu/connection.rb', line 3 def id @id end |
#locale ⇒ Object
Returns the value of attribute locale.
4 5 6 |
# File 'lib/carbonmu/connection.rb', line 4 def locale @locale end |
#player ⇒ Object
Returns the value of attribute player.
5 6 7 |
# File 'lib/carbonmu/connection.rb', line 5 def player @player end |