Class: Celluloid::Internals::Links

### Home Classes Methods

### In Files

- lib/celluloid/internals/links.rb

### Parent

Object

### Methods

- ::new
- #<<
- #delete
- #each
- #include?
- #inspect

### Included Modules

- Enumerable

### Class/Module Index

Quicksearch

- Celluloid
- Celluloid::Incident
- Celluloid::IncidentLogger
- Celluloid::IncidentLogger::Severity
- Celluloid::IncidentReporter
- Celluloid::IncidentReporter::Formatter
- Celluloid::Internals
- Celluloid::Internals::CPUCounter
- Celluloid::Internals::CallChain
- Celluloid::Internals::Handler
- Celluloid::Internals::Handlers
- Celluloid::Internals::Links
- Celluloid::Internals::Logger
- Celluloid::Internals::Logger::WithBacktrace
- Celluloid::Internals::Method
- Celluloid::Internals::Properties
- Celluloid::Internals::Receiver
- Celluloid::Internals::Receivers
- Celluloid::Internals::Registry
- Celluloid::Internals::Response
- Celluloid::Internals::Response::Block
- Celluloid::Internals::Response::Error
- Celluloid::Internals::Response::Success
- Celluloid::Internals::Signals
- Celluloid::Internals::Stack
- Celluloid::Internals::Stack::ActorState
- Celluloid::Internals::Stack::CellState
- Celluloid::Internals::Stack::DisplayBacktrace
- Celluloid::Internals::Stack::Dump
- Celluloid::Internals::Stack::Summary
- Celluloid::Internals::Stack::TaskState
- Celluloid::Internals::Stack::ThreadState
- Celluloid::Internals::TaskSet
- Celluloid::Internals::ThreadHandle
- Celluloid::Internals::UUID
- Celluloid::LogEvent
- Celluloid::Notifications
- Celluloid::Notifications::Fanout
- Celluloid::Notifications::Subscriber
- Celluloid::Probe
- Celluloid::RingBuffer

No matching classes.

# Celluloid::Internals::Links

Linked actors send each other system events

### Public Class Methods

new() click to toggle source

    # File lib/celluloid/internals/links.rb, line 7
    def initialize
      @links = {}
    end

### Public Instance Methods

<<(actor) click to toggle source

Add an actor to the current links

    # File lib/celluloid/internals/links.rb, line 12
    def <<(actor)
      @links[actor.mailbox.address] = actor
    end

delete(actor) click to toggle source

Remove an actor from the links

    # File lib/celluloid/internals/links.rb, line 22
    def delete(actor)
      @links.delete actor.mailbox.address
    end

each() click to toggle source

Iterate through all links

    # File lib/celluloid/internals/links.rb, line 27
    def each
      @links.each { |_, actor| yield(actor) }
    end

include?(actor) click to toggle source

Do links include the given actor?

    # File lib/celluloid/internals/links.rb, line 17
    def include?(actor)
      @links.key? actor.mailbox.address
    end

inspect() click to toggle source

Generate a string representation

    # File lib/celluloid/internals/links.rb, line 32
    def inspect
      links = map(&:inspect).join(",")
      "#<#{self.class}[#{links}]>"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.