Adds documentation for ruby cases and ternaries.