Class: TkCore::Tk_OBJECT_TABLE

Inherits:
Object
  • Object
show all
Defined in:
lib/tk.rb

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Tk_OBJECT_TABLE

Returns a new instance of Tk_OBJECT_TABLE.



1217
1218
1219
1220
# File 'lib/tk.rb', line 1217

def initialize(id)
  @id = id
  @mutex = Mutex.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &b) ⇒ Object



1224
1225
1226
# File 'lib/tk.rb', line 1224

def method_missing(m, *args, &b)
  TkCore::INTERP.tk_object_table(@id).__send__(m, *args, &b)
end

Instance Method Details

#mutexObject



1221
1222
1223
# File 'lib/tk.rb', line 1221

def mutex
  @mutex
end