Module: Hessian2::Handler
- Defined in:
- lib/hessian2/handler.rb
Instance Method Summary collapse
Instance Method Details
#handle(data) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/hessian2/handler.rb', line 6 def handle(data) val = Hessian2.parse_rpc(data) begin res = self.send(*val) rescue NoMethodError, ArgumentError => e Hessian2.write_fault(e) else Hessian2.reply(res) end end |