add ruby folding