Class: ViewServer::Client
- Inherits:
-
Delegator
- Object
- Delegator
- ViewServer::Client
- Defined in:
- lib/view_server/client.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #__getobj__ ⇒ Object
-
#initialize(port = 10021) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(port = 10021) ⇒ Client
Returns a new instance of Client.
8 9 10 11 |
# File 'lib/view_server/client.rb', line 8 def initialize(port = 10021) DRb.start_service @server = DRbObject.new(nil, "druby://localhost:#{port}") end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
6 7 8 |
# File 'lib/view_server/client.rb', line 6 def server @server end |
Instance Method Details
#__getobj__ ⇒ Object
13 14 15 |
# File 'lib/view_server/client.rb', line 13 def __getobj__ @server end |