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: generator.rb
    path of file: ./repos/brew/Library/Homebrew/vendor/bundle-standalone/ruby/2.3.0/gems/plist-3.5.0/lib/plist
    
    the code of the file until where you have to start completion: # encoding: utf-8

# = plist
#
# Copyright 2006-2010 Ben Bleything and Patrick May
# Distributed under the MIT License
#

module Plist
  # === Crea
    
    def self.element_type(item)
      case item
      when String, Symbol
        'string'

      when Integer
        'integer'

      when Float
        'real'

      else
        raise "Don't know about this data type... something must be wrong!"
      end