Skip to content

Instantly share code, notes, and snippets.

@ged
Forked from tarcieri/sheen.rb
Created October 25, 2011 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ged/1314409 to your computer and use it in GitHub Desktop.
Save ged/1314409 to your computer and use it in GitHub Desktop.
Example class using Celluloid::Actor
class Sheen
include Celluloid::Actor
def initialize(name)
@name = name
end
def current_status
"#{@name} is winning!"
end
end
@ged
Copy link
Author

ged commented Oct 25, 2011

You mean "include Celluloid::Actor", right?

@ged
Copy link
Author

ged commented Oct 25, 2011

Haha, nevermind. I hadn't read the article that followed.

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