Support attribute to class.