Added ctx.attrs() method (close #16)