In Files

  • tk/lib/tkextlib/tktable/tktable.rb

Class/Module Index [+]

Quicksearch

Tk::TkTable::NamedCellTag

Public Class Methods

new(parent, name, keys=nil) click to toggle source
 
               # File tk/lib/tkextlib/tktable/tktable.rb, line 218
def self.new(parent, name, keys=nil)
  obj = nil
  CellTagID_TBL.mutex.synchronize{
    if CellTagID_TBL[parent.path] && CellTagID_TBL[parent.path][name]
      obj = CellTagID_TBL[parent.path][name]
    else
      #super(parent, name, keys)
      (obj = self.allocate).instance_eval{
        @parent = @t = parent
        @tpath = parent.path
        @path = @id = name
        CellTagID_TBL[@tpath] = {} unless CellTagID_TBL[@tpath]
        CellTagID_TBL[@tpath][@id] = self
      }
    end
  }
  obj.configure(keys) if keys && ! keys.empty?
  obj
end
            
new(parent, name, keys=nil) click to toggle source
 
               # File tk/lib/tkextlib/tktable/tktable.rb, line 238
def initialize(parent, name, keys=nil)
  # dummy:: not called by 'new' method
  @parent = @t = parent
  @tpath = parent.path
  @path = @id = name
  CellTagID_TBL.mutex.synchronize{
    CellTagID_TBL[@tpath] = {} unless CellTagID_TBL[@tpath]
    CellTagID_TBL[@tpath][@id] = self
  }
  configure(keys) if keys && ! keys.empty?
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus