Class: TkDatabaseClass (Ruby 2.3.4)

In Files

  • tk/lib/tk/bindtag.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

TkDatabaseClass

Public Class Methods

new(name, *args, &b)

def self.new(name, *args, &b)

BTagID_TBL.mutex.synchronize{
  return BTagID_TBL[name] if BTagID_TBL[name]
}
super(name, *args, &b)

end

def initialize(name, *args, &b)

@id = name
BTagID_TBL.mutex.synchronize{
  BTagID_TBL[@id] = self
}
bind(*args, &b) if args != []

end

 
               # File tk/lib/tk/bindtag.rb, line 117
def self.new(name, *args, &b)
  BTagID_TBL.mutex.synchronize{
    if BTagID_TBL[name]
      BTagID_TBL[name]
    else
      BTagID_TBL[name] = self.allocate.instance_eval{
        initialize(name, *args, &b)
        self
      }
    end
  }
end
            
new(name, *args, &b)
 
               # File tk/lib/tk/bindtag.rb, line 130
def initialize(name, *args, &b)
  @id = name
  bind(*args, &b) if args != []
end
            

Public Instance Methods

inspect()
 
               # File tk/lib/tk/bindtag.rb, line 135
def inspect
  #Kernel.format "#<TkDatabaseClass: %s>", @id
  '#<TkDatabaseClass: ' + @id + '>'
end