Add a convenience method that will execute a closure based on the property.