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

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

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


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

def to_s()
  return @exp
end