lib/coverband/utils/html_formatter.rb
def formatted_file_list(title, source_files, options = {})
        title_id = title.gsub(/^[^a-zA-Z]+/, '').gsub(/[^a-zA-Z0-9\-\_]/, '')
        # Silence a warning by using the following variable to assign to itself:
        # "warning: possibly useless use of a variable in void context"
        # The variable is used by ERB via binding.
        title_id = title_id
        options = options
        if title == 'Gems'
          template('gem_list').result(binding)
        else
          template('file_list').result(binding)
        end
      end
# Returns a table containing the given source files
Returns a table containing the given source files
Returns a table containing the given source files
def formatted_file_list(title, source_files, options = {})
        title_id = title.gsub(/^[^a-zA-Z]+/, '').gsub(/[^a-zA-Z0-9\-\_]/, '')
        title_id = title_id
        options = options
        if title == 'Gems'
          template('gem_list').result(binding)
        else
          template('file_list').result(binding)
        end
      end
def formatted_file_list ( title , source_files , options = { } ) title_id = title . gsub ( / ^[^a-zA-Z]+ / , '' ) . gsub ( / [^a-zA-Z0-9 \- \_ ] / , '' ) title_id = title_id options = options if title == 'Gems' template ( 'gem_list' ) . result ( binding ) else template ( 'file_list' ) . result ( binding ) end end
Returns a table containing the given source files
Returns a table containing the given source files
# Silence a warning by using the following variable to assign to itself: # "warning: possibly useless use of a variable in void context" # The variable is used by ERB via binding.
title
source_files
options