Object
# File lib/msgpack/rpc/dispatcher.rb, line 29 29: def initialize(obj, accept = obj.public_methods) 30: @obj = obj 31: @accept = accept.map {|m| m.is_a?(Integer) ? m : m.to_s } 32: end
# File lib/msgpack/rpc/dispatcher.rb, line 34 34: def dispatch(method, param, &block) 35: unless @accept.include?(method) 36: raise NoMethodError, "method `#{method}' is not accepted" 37: end 38: @obj.send(method, *param, &block) 39: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.