commit 575be4748c62d9958cdbeb3660d97d04ee04e0b7
parent 6bc5fac5b9321acacce27a93f30e576d343b1ee5
Author: Ben Walton <bwalton@artsci.utoronto.ca>
Date: Sat, 15 May 2010 14:45:21 -0400
Allow toggle on Source.usual and Source.archived
Allow sources to be more malleable by allowing for the modification of
the usual and archived flags. This is a first step toward patterned
(meta) sources. Initially, the patterning will be handled by one of
the poll hooks, which will use the usual toggle when a 'new' source is
added. Later on, this may be handled internally for sources with a
meta = true attribute (or something similar).
Signed-off-by: Ben Walton
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/source.rb b/lib/sup/source.rb
@@ -63,7 +63,8 @@ class Source
##
## dirty? means cur_offset has changed, so the source info needs to
## be re-saved to sources.yaml.
- bool_reader :usual, :archived, :dirty
+ bool_reader :dirty
+ bool_accessor :usual, :archived
attr_reader :uri, :cur_offset
attr_accessor :id