module FistOfFury::Actor
Public Class Methods
included(base)
click to toggle source
# File lib/fist_of_fury/actor.rb, line 3 def self.included(base) base.__send__(:include, Celluloid) base.finalizer :fist_of_fury_finalizer end
new(*args, &block)
click to toggle source
Calls superclass method
# File lib/fist_of_fury/actor.rb, line 8 def initialize(*args, &block) log_call 'initialize' super end
Private Instance Methods
fist_of_fury_finalizer()
click to toggle source
# File lib/fist_of_fury/actor.rb, line 15 def fist_of_fury_finalizer log_call 'shutting down ...' end
log_call(call)
click to toggle source
# File lib/fist_of_fury/actor.rb, line 19 def log_call(call) info "#{self.class.name} id: #{object_id} #{call}" end