[logaling-commit] logaling/logaling-command [master] Use Glossary#to_s

Back to archive index

null+****@clear***** null+****@clear*****
Mon Jun 18 12:04:45 JST 2012


SUZUKI Miho	2012-06-18 12:04:45 +0900 (Mon, 18 Jun 2012)

  New Revision: 65897814827e33bbe5fc766c469f75b32c5e9f8c
  https://github.com/logaling/logaling-command/commit/65897814827e33bbe5fc766c469f75b32c5e9f8c

  Merged 7228757: Merge pull request #60 from logaling/refactor-structure

  Log:
    Use Glossary#to_s

  Modified files:
    lib/logaling/glossary.rb

  Modified: lib/logaling/glossary.rb (+1 -1)
===================================================================
--- lib/logaling/glossary.rb    2012-06-18 12:00:39 +0900 (8e60ac6)
+++ lib/logaling/glossary.rb    2012-06-18 12:04:45 +0900 (427563e)
@@ -99,7 +99,7 @@ module Logaling
 
     def glossary_sources
       glob_condition = SUPPORTED_FILE_TYPE.map do |type|
-        file_name = [@name, @source_language, @target_language, type].join('.')
+        file_name = [self.to_s, type].join('.')
         File.join(@project.glossary_source_path, file_name)
       end
       Dir.glob(glob_condition).map {|source_path| GlossarySource.new(source_path, self)}
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



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