Skip to content

Instantly share code, notes, and snippets.

@neektza
Last active April 14, 2017 17:49
Show Gist options
  • Save neektza/345b6d6b730d11033f532bdf8cb7ea72 to your computer and use it in GitHub Desktop.
Save neektza/345b6d6b730d11033f532bdf8cb7ea72 to your computer and use it in GitHub Desktop.
module Celluloid
def included(klass)
klass.send :extend, ClassMethods
klass.send :include, InstanceMethods
klass.send :extend, Internals::Properties
klass.property :mailbox_class, default: Celluloid::Mailbox
klass.property :proxy_class, default: Celluloid::Proxy::Cell
klass.property :task_class, default: Celluloid.task_class
# ... snip ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment