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