# File tk/lib/tkextlib/blt/vector.rb, line 228
def self.new(name)
TkVar_ID_TBL.mutex.synchronize{
if TkVar_ID_TBL[name]
TkVar_ID_TBL[name]
else
(obj = self.allocate).instance_eval{
initialize(name)
TkVar_ID_TBL[@id] = self
}
obj
end
}
end
# File tk/lib/tkextlib/blt/vector.rb, line 242
def initialize(vec_name)
@id = vec_name
@def_default = false
@default_val = nil
@trace_var = nil
@trace_elem = nil
@trace_opts = nil
# teach Tk-ip that @id is global var
TkCore::INTERP._invoke_without_enc('global', @id)
end
Commenting is here to help enhance the documentation. For example, sample code, 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.