| Class | TclTkVariable |
| In: |
tk/lib/tcltk.rb
|
| Parent: | TclTkObject |
class TclTkVariable: tcl/tk variable
initialize(interp, dat):
interp: interpreter(TclTkInterpreter)
dat: the value to set(String)
if nil, not initialize variable
# File tk/lib/tcltk.rb, line 229 def initialize(interp, dat) # auto-generate tcl/tk representation (variable name) exp = TclTk._newname("v_") # initialize TclTkObject super(interp._tcltkip(), exp) # safe this for `set' command @set = interp.commands()["set"] # set value set(dat) if dat end
ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.