From 4d8d8d84ed3f4abcce85ca313cfcb30f2bdd95b4 Mon Sep 17 00:00:00 2001 From: Rich Lane Date: Sat, 20 Jun 2009 13:50:09 -0700 Subject: [PATCH] index: make wrap_subj methods private --- lib/sup/index.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sup/index.rb b/lib/sup/index.rb index d0e9c62..0d6318e 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -382,9 +382,6 @@ EOS end end - def wrap_subj subj; "__START_SUBJECT__ #{subj} __END_SUBJECT__"; end - def unwrap_subj subj; subj =~ /__START_SUBJECT__ (.*?) __END_SUBJECT__/ && $1; end - def delete id; @index_mutex.synchronize { @index.delete id } end def load_contacts emails, h={} @@ -572,6 +569,9 @@ private q.add_query Ferret::Search::TermQuery.new("source_id", query[:source_id]), :must if query[:source_id] q end + + def wrap_subj subj; "__START_SUBJECT__ #{subj} __END_SUBJECT__"; end + def unwrap_subj subj; subj =~ /__START_SUBJECT__ (.*?) __END_SUBJECT__/ && $1; end end end -- 2.43.0