destroy

destroy() Class Public methods

each

each(system = true, site = true, home = true, gems = :latest, *extra_dirs) Class Public methods Iterates over each selected path yielding the directory and type. Yielded types: :system Where Ruby's ri data is stored. Yielded when system is true :site Where ri for installed libraries are stored. Yielded when site is true. Normally no ri data is stored here. :home ~/.rdoc. Yielded when home is true. :gem ri data for an installed gem. Yielded when gems is true. :extra

all_waits

all_waits(*threads) Class Public methods Waits until all specified threads have terminated. If a block is provided, it is executed for each thread as they terminate.

bsearch

ary.bsearch {|x| block } â elem Instance Public methods By using binary search, finds a value from this array which meets the given condition in O(log n) where n is the size of the array. You can use this method in two use cases: a find-minimum mode and a find-any mode. In either case, the elements of the array must be monotone (or sorted) with respect to the block. In find-minimum mode (this is a good choice for typical use case), the block must return true or false, and there

to_a

to_a( xpath=nil ) Instance Public methods Returns an Array of Element children. An XPath may be supplied to filter the children. Only Element children are returned, even if the supplied XPath matches non-Element children. doc = Document.new '<a>sean<b/>elliott<c/></a>' doc.root.elements.to_a #-> [ <b/>, <c/> ] doc.root.elements.to_a("child::node()") #-> [ <b/>, <c/> ] XPath.match(doc.root, "child::node()") #-

utc_offset

utc_offset() Instance Public methods Returns the offset value in seconds.

[]

[](slot) Instance Public methods

open_tree

open_tree(recurse=None) Instance Public methods

on_event

WIN32OLE_EVENT#on_event([event]){...} Instance Public methods Defines the callback event. If argument is omitted, this method defines the callback of all events. If you want to modify reference argument in callback, return hash in callback. If you want to return value to OLE server as result of callback use `return' or :return. ie = WIN32OLE.new('InternetExplorer.Application') ev = WIN32OLE_EVENT.new(ie) ev.on_event("NavigateComplete") {|url| puts url} ev.on_event() {|ev, *args| p

id2obj

id2obj(tree, id) Class Public methods