Class: RSC
- Inherits:
-
Object
- Object
- RSC
- Defined in:
- lib/rsc.rb
Defined Under Namespace
Classes: Package
Instance Method Summary collapse
-
#initialize(drb_hostname = 'rse', parent_url) ⇒ RSC
constructor
A new instance of RSC.
Constructor Details
#initialize(drb_hostname = 'rse', parent_url) ⇒ RSC
Returns a new instance of RSC.
43 44 45 46 47 48 |
# File 'lib/rsc.rb', line 43 def initialize(drb_hostname='rse', parent_url) @parent_url = parent_url DRb.start_service @obj = DRbObject.new(nil, "druby://#{drb_hostname}:61000") end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object (private)
52 53 54 |
# File 'lib/rsc.rb', line 52 def method_missing(method_name, *args) Package.new @obj, @parent_url, method_name.to_s end |