lib/celluloid/internals/links.rb in celluloid-essentials-0.20.0.pre14 vs lib/celluloid/internals/links.rb in celluloid-essentials-0.20.0.pre15

- old
+ new

@@ -13,11 +13,11 @@ @links[actor.mailbox.address] = actor end # Do links include the given actor? def include?(actor) - @links.has_key? actor.mailbox.address + @links.key? actor.mailbox.address end # Remove an actor from the links def delete(actor) @links.delete actor.mailbox.address @@ -28,10 +28,10 @@ @links.each { |_, actor| yield(actor) } end # Generate a string representation def inspect - links = self.map(&:inspect).join(',') + links = map(&:inspect).join(",") "#<#{self.class}[#{links}]>" end end end end