Class: Rack::RPC::MethodCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/rack/rpc/server.rb

Overview

ProcCommand

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (MethodCommand) initialize(method, options)

Returns a new instance of MethodCommand



104
105
106
107
# File 'lib/rack/rpc/server.rb', line 104

def initialize(method, options)
  @method = method.to_sym
  super(options)
end

Instance Attribute Details

- (void) options (readonly) Originally defined in class Command

Returns the value of attribute options

Instance Method Details

- (void) call(server)



109
110
111
# File 'lib/rack/rpc/server.rb', line 109

def call(server)
  server.__send__(@method)
end