Make #attrs call methods if they exist

Closes #361.