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.
9 10 11 12 |
# File 'lib/view_server/client.rb', line 9 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.
7 8 9 |
# File 'lib/view_server/client.rb', line 7 def server @server end |
Instance Method Details
#__getobj__ ⇒ Object
14 15 16 |
# File 'lib/view_server/client.rb', line 14 def __getobj__ @server end |