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: def_method.rb
    path of file: ./repos/ruby/lib/erb
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
#--
# ERB::DefMethod
#
# Utility module to define eRuby script as instance metho
    
  def def_erb_method(methodname, erb_or_fname)
    if erb_or_fname.kind_of? String
      fname = erb_or_fname
      erb = ERB.new(File.read(fname))
      erb.def_method(self, methodname, fname)
    else
      erb = erb_or_fname
      erb.def_method(self, methodname, erb.filename || '(ERB)')
    end