learn ruby patch

i want learn how to create patches with ruby what is best resource i can learn from