Event driven Raspberry Pi GPIO programming in Ruby