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: document.rb
    path of file: ./repos/thinreports-generator/lib/thinreports/basic_report/generator/pdf
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative 'document/font'
require_relative 'document/parse_color'
require_relative 'document/graphics'
require_relative 'document/draw_
    
          def s2f(*values)
            return nil if values.empty?

            if values.size == 1
              value = values.first
              return nil unless value
              value.is_a?(::Numeric) ? value : value.to_f
            else
              values.map { |v| s2f(v) }
            end