# File lib/core/endpoint.rb, line 125 def handler=(handler) reactor = Qpid::Proton::Reactor::Reactor.wrap(Cproton.pn_object_reactor(@impl)) if reactor.nil? on_error = nil else on_error = reactor.method(:on_error) end impl = chandler(handler, on_error) record = self.attachments Cproton.pn_record_set_handler(record, impl) Cproton.pn_decref(impl) end