Method: Tk::TkTable::CellTag#initialize
- Defined in:
- ext/lib/tkextlib/tktable/tktable.rb
#initialize(parent, keys = nil) ⇒ CellTag
Returns a new instance of CellTag.
149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 149 def initialize(parent, keys=nil) @parent = @t = parent @tpath - parent.path CellTag_ID.mutex.synchronize{ @path = @id = CellTag_ID.join(TkCore::INTERP._ip_id_) CellTag_ID[1].succ! } CellTagID_TBL.mutex.synchronize{ CellTagID_TBL[@tpath] = {} unless CellTagID_TBL[@tpath] CellTagID_TBL[@tpath][@id] = self } configure(keys) if keys end |