Class: RSC

Inherits:
Object
  • Object
show all
Defined in:
lib/rsc.rb

Defined Under Namespace

Classes: Package

Instance Method Summary collapse

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