celluloid/celluloid — pull request #43 by arturaz (2012-04-04 10:24:59+00:00)
Title: Add support for Actor.name and Actor.name=

This allows us to set names of the actors and later use them (lets say in logging):

def data_for(component, type, message)
name = Celluloid.actor? ? Celluloid::Actor.name : "main"
"%s[%s|%s|%s|%-5s] %s\n" % [
' ' * @indent,
Time.now.strftime(DATETIME_FORMAT),
name, component, type, message
]
end