How to add attribute specific hide shipping rules

Color and size are the two main attributes that differentiate products in online shops. 

When it comes to a clothing shop or some similar business, the significance of these attributes is even more. 

Hence, there are times when you want to decide whether or not to hide your specific or all shipping methods as per the color/size if added to the cart.

For such a scenario, add an attribute-specific rule.