Method: Tk::TkTable::NamedCellTag#initialize
- Defined in:
- lib/tkextlib/tktable/tktable.rb
#initialize(parent, name, keys = nil) ⇒ NamedCellTag
Returns a new instance of NamedCellTag.
248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/tkextlib/tktable/tktable.rb', line 248 def initialize(parent, name, keys=nil) # dummy:: not called by 'new' method @parent = @t = parent @tpath = parent.path @path = @id = name CellTagID_TBL.mutex.synchronize{ CellTagID_TBL[@tpath] = {} unless CellTagID_TBL[@tpath] CellTagID_TBL[@tpath][@id] = self } configure(keys) if keys && ! keys.empty? end |