Class: Gtk::TextTagTable

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk3/text-tag-table.rb

Instance Method Summary collapse

Instance Method Details

#add(tag) ⇒ Object


20
21
22
23
24
25
26
27
28
29
# File 'lib/gtk3/text-tag-table.rb', line 20

def add(tag)
  succeeded = add_raw(tag)
  # GTK+ 3.12 or older returns nothing.
  # We assume that it's always succeeded for the case.
  if succeeded.nil?
    true
  else
    succeeded
  end
end

#add_rawObject


19
# File 'lib/gtk3/text-tag-table.rb', line 19

alias_method :add_raw, :add