In Files

  • tk/lib/tk/bindtag.rb

Class/Module Index [+]

Quicksearch

TkBindTag

Public Class Methods

id2obj(id) click to toggle source
 
               # File tk/lib/tk/bindtag.rb, line 15
def TkBindTag.id2obj(id)
  BTagID_TBL[id]? BTagID_TBL[id]: id
end
            
new(*args, &b) click to toggle source
 
               # File tk/lib/tk/bindtag.rb, line 30
def initialize(*args, &b)
  # @id = Tk_BINDTAG_ID.join('')
  @id = Tk_BINDTAG_ID.join(TkCore::INTERP._ip_id_)
  Tk_BINDTAG_ID[1].succ!
  BTagID_TBL[@id] = self
  bind(*args, &b) if args != []
end
            
new_by_name(name, *args, &b) click to toggle source
 
               # File tk/lib/tk/bindtag.rb, line 19
def TkBindTag.new_by_name(name, *args, &b)
  return BTagID_TBL[name] if BTagID_TBL[name]
  self.new.instance_eval{
    BTagID_TBL.delete @id
    @id = name
    BTagID_TBL[@id] = self
    bind(*args, &b) if args != []
    self
  }
end
            

Public Instance Methods

inspect() click to toggle source
 
               # File tk/lib/tk/bindtag.rb, line 48
def inspect
  #Kernel.format "#<TkBindTag: %s>", @id
  '#<TkBindTag: ' + @id + '>'
end
            
name() click to toggle source
 
               # File tk/lib/tk/bindtag.rb, line 40
def name
  @id
end
            
to_eval() click to toggle source
 
               # File tk/lib/tk/bindtag.rb, line 44
def to_eval
  @id
end