From ecfdae994dcae9dcc6c554d9157d7ce5f0c6e188 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Sun, 24 Feb 2008 14:28:53 -0800 Subject: [PATCH] MBox::Loader#next determines labels with self.labels instead of @labels This allows subclasses to define fixed #labels methods rather than having to set a shared instance variable (which is one of the few features of Ruby I actively hate.) SentLoader does this, --- lib/sup/mbox/loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb index a66d7b9..4acc064 100644 --- a/lib/sup/mbox/loader.rb +++ b/lib/sup/mbox/loader.rb @@ -147,7 +147,7 @@ class Loader < Source end self.cur_offset = next_offset - [returned_offset, (@labels + [:unread]).uniq] + [returned_offset, (self.labels + [:unread]).uniq] end end -- 2.45.2