Class: Rack::RPC::MethodCommand
- Defined in:
- lib/rack/rpc/server.rb
Overview
ProcCommand
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
- #call(server) ⇒ Object
-
#initialize(method, options) ⇒ MethodCommand
constructor
A new instance of MethodCommand.
Methods inherited from Command
Constructor Details
#initialize(method, options) ⇒ MethodCommand
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 Method Details
#call(server) ⇒ Object
109 110 111 |
# File 'lib/rack/rpc/server.rb', line 109 def call(server) server.__send__(@method) end |