Class: Gtk::EntryBuffer

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk3/entry-buffer.rb

Instance Method Summary collapse

Constructor Details

#initialize(text = nil) ⇒ EntryBuffer

Returns a new instance of EntryBuffer.



20
21
22
23
24
25
26
# File 'lib/gtk3/entry-buffer.rb', line 20

def initialize(text=nil)
  if text.nil?
    initialize_raw(nil, -1)
  else
    initialize_raw(text, text.size)
  end
end

Instance Method Details

#initialize_rawObject



19
# File 'lib/gtk3/entry-buffer.rb', line 19

alias_method :initialize_raw, :initialize