Class: Celluloid::Internals::Method

### Home Classes Methods

### In Files

- lib/celluloid/internals/method.rb

### Parent

Object

### Methods

- ::new
- #arity
- #call
- #inspect
- #name
- #parameters

### 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::Method

Method handles that route through an actor proxy

### Public Class Methods

new(proxy, name) click to toggle source

    # File lib/celluloid/internals/method.rb, line 5
    def initialize(proxy, name)
      fail NoMethodError, "undefined method `#{name}'" unless proxy.respond_to? name

      @proxy, @name = proxy, name
      @klass = @proxy.class
    end

### Public Instance Methods

arity() click to toggle source

    # File lib/celluloid/internals/method.rb, line 12
    def arity
      @proxy.method_missing(:method, @name).arity
    end

call(*args, &block) click to toggle source

    # File lib/celluloid/internals/method.rb, line 24
    def call(*args, &block)
      @proxy.__send__(@name, *args, &block)
    end

inspect() click to toggle source

    # File lib/celluloid/internals/method.rb, line 28
    def inspect
      "#<Celluloid::Internals::Method #{@klass}##{@name}>"
    end

name() click to toggle source

    # File lib/celluloid/internals/method.rb, line 16
    def name
      @proxy.method_missing(:method, @name).name
    end

parameters() click to toggle source

    # File lib/celluloid/internals/method.rb, line 20
    def parameters
      @proxy.method_missing(:method, @name).parameters
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.