class Rufo::ErbFormatter
def format_affix(affix, levels, type)
def format_affix(affix, levels, type) string = "" case type when :prefix count = 0 while count < levels count += 1 string += (" " * Rufo::Formatter::INDENT_SIZE * (count > 0 ? count - 1 : 0)) + affix string += "\n" if count < levels end when :suffix count = levels while count > 0 count -= 1 string += "\n" string += (" " * Rufo::Formatter::INDENT_SIZE * (count > 0 ? count - 1 : 0)) + affix end end string end