Sha256: 1b4b27335584fb6589ea7ba32337938fe4c4f8a1b393b435c7dce632205036ed
Contents?: true
Size: 1002 Bytes
Versions: 1
Compression:
Stored size: 1002 Bytes
Contents
o:$YARD::CodeObjects::MethodObject: @name:sort_by:@docstringIC:YARD::Docstring"@Code to do the sorting of the tree contents when clicked on:@objectu:YARD::StubProxy #sort_by: @summary0:@line_rangeo: Range: exclF:endit: beginit: @tags[: @all["@Code to do the sorting of the tree contents when clicked on:@ref_tags[: @lineiu:@docstring_extra0:@visibility:public:@files[["%ext/tk/sample/demos-jp/mclist.rbiy["%ext/tk/sample/demos-en/mclist.rbiu;[:@parameters[[" tree0["col0["direction0: @path" #sort_by:@source_type: ruby:@explicitT:@signature"&def sort_by(tree, col, direction):@source"<def sort_by(tree, col, direction) tree.children(nil).map!{|row| [tree.get(row, col), row.id]} . sort(&((direction)? proc{|x, y| y <=> x}: proc{|x, y| x <=> y})) . each_with_index{|info, idx| tree.move(info[1], nil, idx)} tree.heading_configure(col, :command=>proc{sort_by(tree, col, ! direction)}) end:@namespaceu;:@scope: instance:@current_file_has_commentsT
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pry-0.6.9pre1-i386-mingw32 | lib/pry/stdlib_docs18/objects/sort_by_i.dat |