Module: Celluloid::Proxy

Defined in:
lib/celluloid/proxies.rb,
lib/celluloid/proxy/abstract.rb

Defined Under Namespace

Classes: Abstract, AbstractCall, Actor, Async, Block, Cell, Future, Sync

Class Method Summary collapse

Class Method Details

.class_of(instance) ⇒ Object

Looks up the actual class of instance, even if instance is a proxy.



3
4
5
# File 'lib/celluloid/proxy/abstract.rb', line 3

def self.class_of(instance)
  (class << instance; self; end).superclass
end