module MenuCreator @@loaded = false @@menu_params = [] def menu_options(params) @@menu_params = params unless @@loaded end def menu_bar return nil unless @@menu_params html = '
' html += '
' html += '
' html += '
' html += '' html += '
' html += '
' html += '
' html += '
' html.html_safe end end