Object
BTagID_TBL = {}
# File tk/lib/tk/bindtag.rb, line 15 def TkBindTag.id2obj(id) BTagID_TBL[id]? BTagID_TBL[id]: id end
# 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
# 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
# File tk/lib/tk/bindtag.rb, line 48 def inspect #Kernel.format "#<TkBindTag: %s>", @id '#<TkBindTag: ' + @id + '>' end
# File tk/lib/tk/bindtag.rb, line 40 def name @id end
# File tk/lib/tk/bindtag.rb, line 44 def to_eval @id end
This page was generated for Ruby 1.8.6
Generated with Ruby-doc Rdoc Generator 0.44.0.