You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: metafonts.rb
    path of file: ./repos/metaflop-www/app/views
    
    the code of the file until where you have to start completion: #
# metaflop - web interface
# Â© 2012 by alexis reigel
# www.metaflop.com
#
# licensed under gpl v3
#

require_relative 'showoff_page'

class App < Sinatra::Base
  module Views
    class Metafonts < ShowoffPage
      template :showoff_page

      def all
        pages = @settings.to_a.ma
    
      def all
        pages = @settings.to_a.map do |identifier, settings|
          infos = infos(identifier, settings)
          images = images(settings)
          sub_images = sub_images(settings)

          infos
            .merge(images)
            .merge(sub_images)
        end

        current(pages)['css_class'] = 'active'

        pages
      end