Method: TkTextTag.id2obj

Defined in:
lib/tk/texttag.rb

.id2obj(text, id) ⇒ Object



25
26
27
28
29
30
31
32
33
34
# File 'lib/tk/texttag.rb', line 25

def TkTextTag.id2obj(text, id)
  tpath = text.path
  TTagID_TBL.mutex.synchronize{
    if TTagID_TBL[tpath]
      TTagID_TBL[tpath][id]? TTagID_TBL[tpath][id]: id
    else
      id
    end
  }
end