method
generate_method
v1_9_2_180 -
Show latest stable
- Class:
WIN32COMGen
generate_method(method, disptype, io = STDOUT, types = nil)public
No documentation available.
# 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