Method: TkTextTag#exist?

Defined in:
lib/tk/texttag.rb

#exist?Boolean

Returns:

  • (Boolean)


70
71
72
73
74
75
76
77
# File 'lib/tk/texttag.rb', line 70

def exist?
  #if ( tk_split_simplelist(_fromUTF8(tk_call_without_enc(@t.path, 'tag', 'names'))).find{|id| id == @id } )
  if ( tk_split_simplelist(tk_call_without_enc(@t.path, 'tag', 'names'), false, true).find{|id| id == @id } )
    true
  else
    false
  end
end