Method: TkTextTag#destroy

Defined in:
lib/tk/texttag.rb

#destroyObject



237
238
239
240
241
242
243
# File 'lib/tk/texttag.rb', line 237

def destroy
  tk_call_without_enc(@t.path, 'tag', 'delete', @id)
  TTagID_TBL.mutex.synchronize{
    TTagID_TBL[@tpath].delete(@id) if TTagID_TBL[@tpath]
  }
  self
end