SHIMADA Koji
null+****@clear*****
Mon Aug 13 13:10:11 JST 2012
SHIMADA Koji 2012-08-13 13:10:11 +0900 (Mon, 13 Aug 2012) New Revision: b8201a283f3a40316d4564789355026e15550f15 https://github.com/logaling/logaling-command/commit/b8201a283f3a40316d4564789355026e15550f15 Merged 3c178f5: Merge pull request #74 from logaling/loga-new-no-project Log: Use #any? instead of #index Modified files: lib/logaling/project.rb Modified: lib/logaling/project.rb (+1 -1) =================================================================== --- lib/logaling/project.rb 2012-08-13 13:01:03 +0900 (d372eb8) +++ lib/logaling/project.rb 2012-08-13 13:10:11 +0900 (e311fb1) @@ -73,7 +73,7 @@ module Logaling end def has_glossary?(source_language, target_language) - glossaries.map(&:to_s).index([name, source_language, target_language].join('.')) + glossaries.map(&:to_s).any? {|glossary_name| glossary_name == [name, source_language, target_language].join('.') } end private -------------- next part -------------- An HTML attachment was scrubbed... 下载