module Crystal class DefaultFormatProcessor def add_format path, format path << ".#{format}" path end def remove_format path path.sub(/\.[^\.]+$/, '') end end end