]> git.cworth.org Git - notmuch/blob - bindings/ruby/tags.c
ruby: remove Tags object
[notmuch] / bindings / ruby / tags.c
1 #include "defs.h"
2
3 VALUE
4 notmuch_rb_tags_get (notmuch_tags_t *tags)
5 {
6     VALUE rb_array = rb_ary_new ();
7
8     for (; notmuch_tags_valid (tags); notmuch_tags_move_to_next (tags)) {
9         const char *tag = notmuch_tags_get (tags);
10         rb_ary_push (rb_array, rb_str_new2 (tag));
11     }
12     return rb_array;
13 }