Class: Rack::RPC::ProcCommand
Instance Attribute Summary (collapse)
-
- (void) options
inherited
from Command
readonly
Returns the value of attribute options.
Instance Method Summary (collapse)
- - (void) call(server)
-
- (ProcCommand) initialize(proc, options)
constructor
A new instance of ProcCommand.
Constructor Details
- (ProcCommand) initialize(proc, options)
Returns a new instance of ProcCommand
93 94 95 96 |
# File 'lib/rack/rpc/server.rb', line 93 def initialize(proc, ) @proc = proc.to_proc 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)
98 99 100 |
# File 'lib/rack/rpc/server.rb', line 98 def call(server) server.instance_eval(&@proc) end |