The code itself is well documented and actually quite simple; worth a look <a href="https:&#x2F;&#x2F;github.com&#x2F;snusnu&#x2F;procto&#x2F;blob&#x2F;master&#x2F;lib&#x2F;procto.rb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;snusnu&#x2F;procto&#x2F;blob&#x2F;master&#x2F;lib&#x2F;procto.rb</a>