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: font_parameters_file_content_line.rb
    path of file: ./repos/metaflop-www/app/lib
    
    the code of the file until where you have to start completion: #
# metaflop - web interface
# Â© 2012 by alexis
    
  def to_font_parameter
    pair = extract_pair

    name = pair[0]

    return :invalid_font_parameter unless pair.length == 2 && name

    value = extract_value(pair)
    unit = extract_unit(pair)
    range = extract_range
    hidden = extract_hidden

    [name, FontParameter.new(
      value,
      value,
      unit,
      { from: range[0], to: range[1] },
      hidden)]
  end