Implements attr method for pQuery objects