Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created May 10, 2011 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tarcieri/965379 to your computer and use it in GitHub Desktop.
Save tarcieri/965379 to your computer and use it in GitHub Desktop.
Example class using Celluloid::Actor
class Sheen
include Celluloid
def initialize(name)
@name = name
end
def current_status
"#{@name} is winning!"
end
end
@Peeja
Copy link

Peeja commented Jul 2, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment