Update linesofcode.rb

refactoring the code by combining all the folder types processing method to make it shorter.