ruby binding to handling event devices