Flowdock
method

generate_method

Importance_0
v1_9_2_180 - Show latest stable - 0 notes - Class: WIN32COMGen
generate_method(method, disptype, io = STDOUT, types = nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/win32ole/sample/olegen.rb, line 141
  def generate_method(method, disptype, io = STDOUT, types = nil)
    io.puts "\n"
    io.puts  generate_method_help(method)
    if method.invoke_kind == 'PROPERTYPUT'
      io.print "  def #{method.name}=("
    else
      io.print "  def #{method.name}("
    end
    io.print generate_args(method)
    io.puts ")"
    io.puts generate_method_body(method, disptype, types)
    io.puts "  end"
  end
Register or log in to add new notes.