SUZUKI Miho
null+****@clear*****
Mon Dec 17 13:54:27 JST 2012
SUZUKI Miho 2012-12-17 13:54:27 +0900 (Mon, 17 Dec 2012) New Revision: f5e7c96b4042ed1630fc958b02af9913dd537b2b https://github.com/logaling/logaling-command/commit/f5e7c96b4042ed1630fc958b02af9913dd537b2b Log: Add option for index Modified files: lib/logaling/glossary.rb Modified: lib/logaling/glossary.rb (+2 -2) =================================================================== --- lib/logaling/glossary.rb 2012-12-10 10:53:26 +0900 (5451f20) +++ lib/logaling/glossary.rb 2012-12-17 13:54:27 +0900 (c6e5fe4) @@ -53,10 +53,10 @@ module Logaling !find_bilingual_pairs(source_term, target_term, note).empty? end - def add(source_term, target_term, note) + def add(source_term, target_term, note, index_after_adding=true) raise Logaling::TermError if bilingual_pair_exists?(source_term, target_term) glossary_source.add(source_term, target_term, note) - index! + index! if index_after_adding end def update(source_term, target_term, new_target_term, note) -------------- next part -------------- An HTML attachment was scrubbed... Download