# File lib/xsd/codegen/moduledef.rb, line 50
  def def_method(name, *params)
    add_method(MethodDef.new(name, *params) { yield if block_given? }, :public)
  end