Skip to content

Instantly share code, notes, and snippets.

@hinrik
Created March 19, 2012 17:13
Show Gist options
  • Save hinrik/2119746 to your computer and use it in GitHub Desktop.
Save hinrik/2119746 to your computer and use it in GitHub Desktop.
require 'celluloid'
module CellMixin
include Celluloid # seems to have no effect
def foo
p Celluloid.current_actor # causes Celluloid::NotActorError
end
end
class Cell
# uncommenting this gets rid of the Celluloid::NotActorError
#include Celluloid
include CellMixin
end
cell = Cell.new
cell.foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment