Created
May 10, 2011 21:03
-
-
Save tarcieri/965379 to your computer and use it in GitHub Desktop.
Example class using Celluloid::Actor
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
class Sheen | |
include Celluloid | |
def initialize(name) | |
@name = name | |
end | |
def current_status | |
"#{@name} is winning!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Heads up: the blog post which embeds this gist still refers to
Celluloid::Actor
, which is confusing next to this code. Consider updating it? It still has good Google-juice.http://www.unlimitednovelty.com/2011/05/introducing-celluloid-concurrent-object.html