Method: Gtk::TextBuffer#insert_markup

Defined in:
lib/gtk3/text-buffer.rb

#insert_markup(iter, markup, n_bytes = nil) ⇒ Object



163
164
165
166
167
168
169
170
171
# File 'lib/gtk3/text-buffer.rb', line 163

def insert_markup(iter, markup, n_bytes=nil)
  case markup
  when GLib::Bytes
    n_bytes ||= markup.size
  else
    n_bytes ||= markup.bytesize
  end
  insert_markup_raw(iter, markup, n_bytes)
end