IP address searching

Does any one know of a ruby module for storing IP address/mask
combinations. I was looking for an implementation of patricia trie or
something similar as speed is important for this application.

Jeff.