Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/object_extensions.rb
Instance Method Summary collapse
-
#async ⇒ Object
returns an async wrapper around this object.
-
#sync(options = {}) ⇒ Object
ensures we are dealing with the “real” synchronous object.
Instance Method Details
#async ⇒ Object
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( = {}) self # a no-op in Object, will be redefined in async proxies classes end |