Created
March 19, 2012 17:13
-
-
Save hinrik/2119746 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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