def foo((bar, baz)); end
^^^^^^^^^^
Pattern
constants get wrapped in another layer of :const.
Foo += bar ^^^^^^^^^^^
Foo::Bar, = baz ^^^^^^^^
def foo(**bar); end
^^^^^
def foo(**); end
^^
Visit the targets of a multi-target node.
/foo #{bar}/ ^^^^^^^^^^^^
/foo #{bar}/ ^^^^^^^^^^^^
Defines the callback of event. If you want modify argument in callback, you could use this method instead of WIN32OLE::Event#on_event
.
ie = WIN32OLE.new('InternetExplorer.Application') ev = WIN32OLE::Event.new(ie) ev.on_event_with_outargs('BeforeNavigate2') {|*args| args.last[6] = true }
Sets value specified by the member name of VT_RECORD OLE object. If the member name is not correct, KeyError
exception is raised. If you can’t set value of member of VT_RECORD OLE object directly, use this method.
If COM server in VB.NET ComServer project is the following:
Imports System.Runtime.InteropServices Public Class ComClass <MarshalAs(UnmanagedType.BStr)> _ Public title As String Public cost As Integer End Class
then setting value of the ‘title’ member is as following:
srver = WIN32OLE.new('ComServer.ComClass') obj = WIN32OLE::Record.new('Book', server) obj.ole_instance_variable_set(:title, "The Ruby Book")
Compile a ConstantPathNode
node
Compile a ConstantTargetNode
node