Class: Plux::Client
- Inherits:
-
Object
- Object
- Plux::Client
- Defined in:
- lib/plux/client.rb
Instance Attribute Summary collapse
-
#server_name ⇒ Object
readonly
Returns the value of attribute server_name.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(server_name) ⇒ Client
constructor
A new instance of Client.
- #puts(msg) ⇒ Object
Constructor Details
#initialize(server_name) ⇒ Client
Returns a new instance of Client.
5 6 7 8 |
# File 'lib/plux/client.rb', line 5 def initialize(server_name) @server_name = server_name @writer = UNIXSocket.open(Plux.server_file(server_name)) end |
Instance Attribute Details
#server_name ⇒ Object (readonly)
Returns the value of attribute server_name.
3 4 5 |
# File 'lib/plux/client.rb', line 3 def server_name @server_name end |