Method: Tk::BLT::Treeview::Tag.new
- Defined in:
- lib/tkextlib/blt/treeview.rb
.new(tree, *ids) ⇒ Object
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 |
# File 'lib/tkextlib/blt/treeview.rb', line 1215 def self.new(tree, *ids) TreeTagID_TBL.mutex.synchronize{ (obj = self.allocate).instance_eval{ if tree.kind_of?(Array) initialize(tree[0], tree[1], ids) else initialize(tree, nil, ids) end TreeTagID_TBL[@tpath] = {} unless TreeTagID_TBL[@tpath] TreeTagID_TBL[@tpath][@id] = self } obj } end |