.bundle/ruby/2.0.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb
def handle_message(message)
      case message
      when SystemEvent
        handle_system_event message
      when Call
        meth = message.method
        if meth == :__send__
          meth = message.arguments.first
        end
        if @receiver_block_executions && meth
          if @receiver_block_executions.include?(meth.to_sym)
            message.execute_block_on_receiver
          end
        end

        task(:call, :method_name => meth, :dangerous_suspend => meth == :initialize) {
          message.dispatch(@subject)
        }
      when BlockCall
        task(:invoke_block) { message.dispatch }
      when BlockResponse, Response
        message.dispatch
      else
        unless @receivers.handle_message(message)
          Logger.debug "Discarded message (unhandled): #{message}" if $CELLULOID_DEBUG
        end
      end
      message
    end
# Handle standard low-priority messages
Handle standard low-priority messages
Handle standard low - priority messages
def handle_message(message)
      case message
      when SystemEvent
        handle_system_event message
      when Call
        meth = message.method
        if meth == :__send__
          meth = message.arguments.first
        end
        if @receiver_block_executions && meth
          if @receiver_block_executions.include?(meth.to_sym)
            message.execute_block_on_receiver
          end
        end
        task(:call, :method_name => meth, :dangerous_suspend => meth == :initialize) {
          message.dispatch(@subject)
        }
      when BlockCall
        task(:invoke_block) { message.dispatch }
      when BlockResponse, Response
        message.dispatch
      else
        unless @receivers.handle_message(message)
          Logger.debug "Discarded message (unhandled): #{message}" if $CELLULOID_DEBUG
        end
      end
      message
    end
def handle_message ( message ) case message when SystemEvent handle_system_event message when Call meth = message . method if meth == :__send__ meth = message . arguments . first end if @receiver_block_executions && meth if @receiver_block_executions . include? ( meth . to_sym ) message . execute_block_on_receiver end end task ( :call , :method_name => meth , :dangerous_suspend => meth == :initialize ) { message . dispatch ( @subject ) } when BlockCall task ( :invoke_block ) { message . dispatch } when BlockResponse , Response message . dispatch else unless @receivers . handle_message ( message ) Logger . debug "Discarded message (unhandled): #{message}" if $CELLULOID_DEBUG end end message end
Handle standard low-priority messages
Handle standard low - priority messages
message