Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • tk/lib/tkextlib/blt/vector.rb

Methods

Class/Module Index [+]

Quicksearch

Tk::BLT::VectorAccess

Public Class Methods

new(name) click to toggle source
 
               # 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
            
new(vec_name) click to toggle source
 
               # 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