Module: EventMachine::IMAP::Connection::TagSequence
- Included in:
- EventMachine::IMAP::Connection
- Defined in:
- lib/em-imap/connection.rb
Overview
Provides a next_tag! method to generate unique tags for an IMAP session.
Instance Method Summary collapse
Instance Method Details
#next_tag! ⇒ Object
174 175 176 177 |
# File 'lib/em-imap/connection.rb', line 174 def next_tag! @tagno += 1 "%s%04d" % [@tag_prefix, @tagno] end |
#post_init ⇒ Object
167 168 169 170 171 172 |
# File 'lib/em-imap/connection.rb', line 167 def post_init super # Copying Net::IMAP @tag_prefix = "RUBY" @tagno = 0 end |