From attr to method