I was having some issues around running Mac.addr.list. I saw the issue was that list method wasn't being defined on the Mac.addr return value when it used Mac.from_getifaddrs to set the value. So I fixed that, and also did a bit of refactoring to get a better feel for what all is happening while maintaining the original API.
I was having some issues around running
Mac.addr.list
. I saw the issue was thatlist
method wasn't being defined on theMac.addr
return value when it usedMac.from_getifaddrs
to set the value. So I fixed that, and also did a bit of refactoring to get a better feel for what all is happening while maintaining the original API.This should fix issue https://github.com/ahoward/macaddr/issues/26
Test and works on OSX and Fedora 31, both using Ruby 2.6.3.