valueOf

Utility function to get LineCap instance from given value.