Class: GtkSource::Snippet
- Inherits:
-
Object
- Object
- GtkSource::Snippet
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_chunk(chunk) ⇒ nil
Appends chunk to the snippet.
-
#buffer ⇒ Gtk::TextBuffer
Buffer.
- #buffer=(buffer) ⇒ Gtk::TextBuffer
-
#context ⇒ GtkSource::SnippetContext
Gets the context used for expanding the snippet.
-
#copy ⇒ GtkSource::Snippet
Does a deep copy of the snippet.
-
#description ⇒ String
Description.
- #description=(description) ⇒ String
-
#focus_position ⇒ Integer
Focus-position.
- #focus_position=(focus_position) ⇒ Integer
-
#get_nth_chunk(nth) ⇒ GtkSource::SnippetChunk
Gets the chunk at nth.
-
#initialize(text) ⇒ GtkSource::Snippet
constructor
Parses the snippet formatted text into a series of chunks and adds them to a new Gtk::SourceSnippet.
-
#language_id ⇒ String
Language-id.
- #language_id=(language_id) ⇒ String
-
#n_chunks ⇒ Integer
Gets the number of chunks in the snippet.
-
#name ⇒ String
Name.
- #name=(name) ⇒ String
-
#trigger ⇒ String
Trigger.
- #trigger=(trigger) ⇒ String
Constructor Details
#initialize(text) ⇒ GtkSource::Snippet
Parses the snippet formatted text into a series of chunks and adds them to a new Gtk::SourceSnippet.
Instance Method Details
#add_chunk(chunk) ⇒ nil
Appends chunk to the snippet.
This may only be called before the snippet has been expanded.
#buffer ⇒ Gtk::TextBuffer
Returns buffer.
#buffer=(buffer) ⇒ Gtk::TextBuffer
#context ⇒ GtkSource::SnippetContext
Gets the context used for expanding the snippet.
#copy ⇒ GtkSource::Snippet
Does a deep copy of the snippet.
#description ⇒ String
Returns description.
#description=(description) ⇒ String
#focus_position ⇒ Integer
Returns focus-position.
#focus_position=(focus_position) ⇒ Integer
#get_nth_chunk(nth) ⇒ GtkSource::SnippetChunk
Gets the chunk at nth.
#language_id ⇒ String
Returns language-id.
#language_id=(language_id) ⇒ String
#n_chunks ⇒ Integer
Gets the number of chunks in the snippet.
Note that not all chunks are editable.
#name ⇒ String
Returns name.
#name=(name) ⇒ String
#trigger ⇒ String
Returns trigger.