class and method to parse rail functions