@@ -25,27 +25,27 @@ def initialize(bus, reference_types: [Controller])
2525 # The order here matters.
2626
2727 self . register_type ( 0x00 , Invoke , recursive : true ,
28- packer : -> ( invoke , packer ) { invoke . pack ( packer ) } ,
29- unpacker : -> ( unpacker ) { Invoke . unpack ( unpacker ) } ,
28+ packer : -> ( invoke , packer ) { invoke . pack ( packer ) } ,
29+ unpacker : -> ( unpacker ) { Invoke . unpack ( unpacker ) } ,
3030 )
3131
3232 [ Return , Yield , Error , Next , Throw , Close ] . each_with_index do |klass , index |
3333 self . register_type ( 0x01 + index , klass , recursive : true ,
34- packer : -> ( value , packer ) { value . pack ( packer ) } ,
35- unpacker : -> ( unpacker ) { klass . unpack ( unpacker ) } ,
34+ packer : -> ( value , packer ) { value . pack ( packer ) } ,
35+ unpacker : -> ( unpacker ) { klass . unpack ( unpacker ) } ,
3636 )
3737 end
3838
3939 # Reverse serialize proxies back into proxies:
4040 # When a Proxy is received, create a proxy pointing back
4141 self . register_type ( 0x10 , Proxy ,
42- packer : -> ( proxy ) { proxy . __name__ } ,
42+ packer : -> ( proxy ) { proxy . __name__ } ,
4343 unpacker : @bus . method ( :[] ) ,
4444 )
4545
4646 self . register_type ( 0x11 , Release , recursive : true ,
47- packer : -> ( release , packer ) { release . pack ( packer ) } ,
48- unpacker : -> ( unpacker ) { Release . unpack ( unpacker ) } ,
47+ packer : -> ( release , packer ) { release . pack ( packer ) } ,
48+ unpacker : -> ( unpacker ) { Release . unpack ( unpacker ) } ,
4949 )
5050
5151 self . register_type ( 0x20 , Symbol )
@@ -56,8 +56,8 @@ def initialize(bus, reference_types: [Controller])
5656 )
5757
5858 self . register_type ( 0x22 , Class ,
59- packer : -> ( klass ) { klass . name } ,
60- unpacker : -> ( name ) { Object . const_get ( name ) } ,
59+ packer : -> ( klass ) { klass . name } ,
60+ unpacker : -> ( name ) { Object . const_get ( name ) } ,
6161 )
6262
6363 # Serialize objects into proxies:
0 commit comments