Method: Gtk::TextBuffer#initialize
- Defined in:
- lib/gtk_app/ext/text_buffer.rb
#initialize(tag_table = nil, options = {}) ⇒ TextBuffer
Returns a new instance of TextBuffer.
20 21 22 23 24 25 26 27 |
# File 'lib/gtk_app/ext/text_buffer.rb', line 20 def initialize(tag_table=nil, ={}) super(tag_table) @undo_stack, @redo_stack = [], [] @spell_check = Aspell.new([:lang] || DEFAULT_LANG) setup_spell_check_marks setup_signals end |