class TclTkIp

add ThreadGroup check to ::new

Public Class Methods

__new__(*args)
Alias for: new
new(*args) click to toggle source
# File rake/lib/multi-tk.rb, line 27
def new(*args)
  if Thread.current.group != ThreadGroup::Default
    raise SecurityError, 'only ThreadGroup::Default can call TclTkIp.new'
  end
  obj = __new__(*args)
  obj.instance_eval{
    @force_default_encoding ||= TkUtil.untrust([false])
    @encoding ||= TkUtil.untrust([nil])
    def @encoding.to_s; self.join(nil); end
  }
  obj
end
Also aliased as: __new__
new(*args) click to toggle source
# File rake/lib/tk.rb, line 30
def initialize(*args)
  __initialize__(*args)

  @force_default_encoding ||= TkUtil.untrust([false])
  @encoding ||= TkUtil.untrust([nil])
  def @encoding.to_s; self.join(nil); end
end
Also aliased as: __initialize__

Public Instance Methods

__initialize__(*args)
Alias for: new
_ip_id_() click to toggle source
# File rake/lib/tk.rb, line 22
def _ip_id_
  # for RemoteTkIp
  ''
end