def create_dictionary_representation
      dict = { storyboards: [],
               table_cells: [],
               collection_cells: [],
               view_controllers: [],
               segues: [],
               prefix: @config.prefix }

      @project.resources.each do |group|
        dict[:storyboards] << group.storyboard
        dict[:table_cells] += group.table_cells
        dict[:collection_cells] += group.collection_cells
        dict[:view_controllers] += group.view_controllers
        dict[:segues] += group.segues
      end

      # Build up flags.
      dict[:has_table_cells] = (dict[:table_cells].count > 0)
      dict[:has_collection_cells] = (dict[:collection_cells].count > 0)
      dict[:has_segues] = (dict[:segues].count > 0)

      dict
    end
def create_dictionary_representation
      dict = { storyboards: [],
               table_cells: [],
               collection_cells: [],
               view_controllers: [],
               segues: [],
               prefix: @config.prefix }

      @project.resources.each do |group|
        dict[:storyboards] << group.storyboard
        dict[:table_cells] += group.table_cells
        dict[:collection_cells] += group.collection_cells
        dict[:view_controllers] += group.view_controllers
        dict[:segues] += group.segues
      end

      # Build up flags.
      dict[:has_table_cells] = (dict[:table_cells].count > 0)
      dict[:has_collection_cells] = (dict[:collection_cells].count > 0)
      dict[:has_segues] = (dict[:segues].count > 0)

      dict
    end
Converts the resources into a Mustache-compatible template dictionary.