class GettextPO::FlagIterator
This class doesn’t provide the new class method. See also GettextPO::Message#workflow_flag_iterator and GettextPO::Message#sticky_flag_iterator.
Public Instance Methods
Source
# File mrblib/mrb_gettextpo_common.rb, line 169 def each block_given? or return enum_for while true begin yield self.next rescue StopIteration return self end end end
Source
static VALUE
gettextpo_po_flag_iterator_m_next (VALUE self)
{
const char *flag = po_flag_next (DATA_PTR (self));
if (flag)
return rb_str_new_cstr (flag);
else
rb_raise (rb_eStopIteration, "no more flag");
}