invoke

WIN32OLE#invoke(method, [arg1,...]) => return value of method.
Instance Public methods

Runs OLE method. The first argument specifies the method name of OLE Automation object. The others specify argument of the method. If you can not execute method directly, then use this method instead.

excel = WIN32OLE.new('Excel.Application')
excel.invoke('Quit')  # => same as excel.Quit
doc_ruby_on_rails
2015-06-12 20:57:57
Comments
Leave a Comment

Please login to continue.