Class: Object

Inherits:
BasicObject
Defined in:
lib/object_extensions.rb

Instance Method Summary collapse

Instance Method Details

#asyncObject

returns an async wrapper around this object



3
4
5
# File 'lib/object_extensions.rb', line 3

def async
  AsyncProxy::ObjectProxy.new(self)
end

#sync(options = {}) ⇒ Object

ensures we are dealing with the “real” synchronous object



8
9
10
# File 'lib/object_extensions.rb', line 8

def sync(options = {})
  self # a no-op in Object, will be redefined in async proxies classes
end