Class: TclTkObject

Inherits:
Object show all
Defined in:
lib/tcltk.rb

Overview

class TclTkObject: base class of the tcl/tk objects

Direct Known Subclasses

TclTkCallback, TclTkCommand, TclTkVariable

Instance Method Summary collapse

Constructor Details

#initialize(ip, exp) ⇒ TclTkObject

initialize(ip, exp):

ip: interpreter(TclTkIp)
exp: tcl/tk representation


187
188
189
190
191
# File 'lib/tcltk.rb', line 187

def initialize(ip, exp)
  fail("type is not TclTkIp") if !ip.kind_of?(TclTkIp)
  @ip = ip
  @exp = exp
end

Instance Method Details

#to_sObject

to_s(): returns tcl/tk representation



194
195
196
# File 'lib/tcltk.rb', line 194

def to_s()
  return @exp
end