Class: Future::ObjectExtension::AsyncObject

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

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ AsyncObject

Returns a new instance of AsyncObject.



29
30
31
# File 'lib/future.rb', line 29

def initialize(obj)
	@obj = obj
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



33
34
35
# File 'lib/future.rb', line 33

def method_missing(name, *args, &block)
	Future.new(@obj, name, args, block)
end