Class: TkDatabaseClass
Constant Summary
Constants inherited from TkBindTag
TkBindTag::ALL, TkBindTag::BTagID_TBL, TkBindTag::Tk_BINDTAG_ID
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, *args, &b) ⇒ TkDatabaseClass
constructor
A new instance of TkDatabaseClass.
- #inspect ⇒ Object
Methods inherited from TkBindTag
id2obj, #name, new_by_name, #to_eval
Methods included from TkBindCore
#bind, #bind_append, #bind_remove, #bindinfo
Constructor Details
#initialize(name, *args, &b) ⇒ TkDatabaseClass
Returns a new instance of TkDatabaseClass.
71 72 73 74 75 |
# File 'lib/tk/bindtag.rb', line 71 def initialize(name, *args, &b) @id = name BTagID_TBL[@id] = self bind(*args, &b) if args != [] end |
Class Method Details
.new(name, *args, &b) ⇒ Object
66 67 68 69 |
# File 'lib/tk/bindtag.rb', line 66 def self.new(name, *args, &b) return BTagID_TBL[name] if BTagID_TBL[name] super(name, *args, &b) end |
Instance Method Details
#inspect ⇒ Object
77 78 79 80 |
# File 'lib/tk/bindtag.rb', line 77 def inspect #Kernel.format "#<TkDatabaseClass: %s>", @id '#<TkDatabaseClass: ' + @id + '>' end |