ElvUI an Tukui define a "toolkit" using metamethods, i'm however not going to link or share any code because of license issues. LibCandybar also uses a metatable to add functions to a private frametype.
There is also a thread dated from 2014 on wowace.com about metamethods,
one of them has an excellent example.