ditch system ruby