Class: Rack::RPC::MethodCommand
- Inherits:
-
Command
- Object
- Command
- Rack::RPC::MethodCommand
- Defined in:
- lib/rack/rpc/server.rb
Overview
ProcCommand
Instance Attribute Summary (collapse)
-
- (void) options
inherited
from Command
readonly
Returns the value of attribute options.
Instance Method Summary (collapse)
- - (void) call(server)
-
- (MethodCommand) initialize(method, options)
constructor
A new instance of MethodCommand.
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, ) @method = method.to_sym super() 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 |