I have posted a gem on rubygems.org
for manipulating IEEE MAC
addresses. (as in ethernet, not apple)
I use it in my firewall and network discovery scripts.
It is a Ruby class named MACAddr. note that there is unrelated gem
called 'macaddr' (all lowercase).
Installation is simple 'gem install MACAddr'
Source is available via git