class Tk::Text::Peer
Public Class Methods
Source
# File lib/tk/text.rb, line 1580 def initialize(text, parent=nil, keys={}) unless text.kind_of?(Tk::Text) fail ArgumentError, "Tk::Text is expected for 1st argument" end @src_text = text super(parent, keys) end
Tk8.5 feature
Calls superclass method
Tk::Text::new
Private Instance Methods
Source
# File lib/tk/text.rb, line 1588 def create_self(keys) if keys and keys != None tk_call_without_enc(@src_text.path, 'peer', 'create', @path, *hash_kv(keys, true)) else tk_call_without_enc(@src_text.path, 'peer', 'create', @path) end end