Flowdock
method

generate_method_help

Importance_0
v1_9_2_180 - Show latest stable - 0 notes - Class: WIN32COMGen
generate_method_help(method, type = 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 99
  def generate_method_help(method, type = nil)
    str = "  # "
    if type
      str += type
    else
      str += method.return_type
    end
    str += " #{method.name}"
    if method.event?
      str += " EVENT"
      str += " in #{method.event_interface}"
    end
    if method.helpstring && method.helpstring != ""
      str += "\n  # "
      str += method.helpstring
    end
    args_help = generate_method_args_help(method)
    if args_help
      str += "\n"
      str += args_help
    end
    str
  end
Register or log in to add new notes.