[logaling-commit] logaling/logaling-command [master] Rename #get_bilingual_pair to #find_bilingual_pairs

Back to archive index

SHIMADA Koji null+****@clear*****
Thu Sep 20 17:54:44 JST 2012


SHIMADA Koji	2012-09-20 17:54:44 +0900 (Thu, 20 Sep 2012)

  New Revision: 6229e150843e5dcce035d25daa7fb990edb29302
  https://github.com/logaling/logaling-command/commit/6229e150843e5dcce035d25daa7fb990edb29302

  Log:
    Rename #get_bilingual_pair to #find_bilingual_pairs

  Modified files:
    lib/logaling/glossary.rb

  Modified: lib/logaling/glossary.rb (+2 -2)
===================================================================
--- lib/logaling/glossary.rb    2012-09-20 17:44:54 +0900 (6979b60)
+++ lib/logaling/glossary.rb    2012-09-20 17:54:44 +0900 (1b77687)
@@ -39,7 +39,7 @@ module Logaling
       terms
     end
 
-    def get_bilingual_pair(source_term, target_term, note=nil)
+    def find_bilingual_pairs(source_term, target_term, note=nil)
       raise Logaling::GlossaryDBNotFound unless File.exist?(@project.glossary_db_path)
       index
       terms = []
@@ -50,7 +50,7 @@ module Logaling
     end
 
     def bilingual_pair_exists?(source_term, target_term, note=nil)
-      !get_bilingual_pair(source_term, target_term, note).empty?
+      !find_bilingual_pairs(source_term, target_term, note).empty?
     end
 
     def add(source_term, target_term, note)
-------------- next part --------------
An HTML attachment was scrubbed...
Télécharger 



More information about the logaling-commit mailing list
Back to archive index