Method: Tk::BLT::Treeview::Tag.new_by_name
- Defined in:
- lib/tkextlib/blt/treeview.rb
.new_by_name(tree, name, *ids) ⇒ Object
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 |
# File 'lib/tkextlib/blt/treeview.rb', line 1202 def self.new_by_name(tree, name, *ids) TreeTagID_TBL.mutex.synchronize{ unless (obj = TreeTagID_TBL[tree.path][name]) (obj = self.allocate).instance_eval{ initialize(tree, name, ids) TreeTagID_TBL[@tpath] = {} unless TreeTagID_TBL[@tpath] TreeTagID_TBL[@tpath][@id] = self } end obj } end |