[logaling-commit] logaling/logaling-command [loga-new-no-project] Move executing #to_s into block

アーカイブの一覧に戻る

SHIMADA Koji null+****@clear*****
Mon Aug 13 13:13:17 JST 2012


SHIMADA Koji	2012-08-13 13:13:17 +0900 (Mon, 13 Aug 2012)

  New Revision: 78ed621b479137c2ca49eed504d68502dd7b5b6a
  https://github.com/logaling/logaling-command/commit/78ed621b479137c2ca49eed504d68502dd7b5b6a

  Log:
    Move executing #to_s into block

  Modified files:
    lib/logaling/project.rb

  Modified: lib/logaling/project.rb (+1 -1)
===================================================================
--- lib/logaling/project.rb    2012-08-13 13:10:11 +0900 (e311fb1)
+++ lib/logaling/project.rb    2012-08-13 13:13:17 +0900 (80aa935)
@@ -73,7 +73,7 @@ module Logaling
     end
 
     def has_glossary?(source_language, target_language)
-      glossaries.map(&:to_s).any? {|glossary_name| glossary_name == [name, source_language, target_language].join('.') }
+      glossaries.any? {|glossary| glossary.to_s == [name, source_language, target_language].join('.') }
     end
 
     private
-------------- next part --------------
An HTML attachment was scrubbed...
ダウンロード 



More information about the logaling-commit mailing list
アーカイブの一覧に戻る