null+****@clear*****
null+****@clear*****
Tue Jul 3 23:36:59 JST 2012
SHIMADA Koji 2012-07-03 23:36:59 +0900 (Tue, 03 Jul 2012) New Revision: 1c55cee4acd50f92cac9667108f17a5de2cbecd1 https://github.com/logaling/logaling-command/commit/1c55cee4acd50f92cac9667108f17a5de2cbecd1 Log: Change the position of Project#glossaries Modified files: lib/logaling/project.rb Modified: lib/logaling/project.rb (+9 -9) =================================================================== --- lib/logaling/project.rb 2012-07-03 23:26:34 +0900 (5b03ad9) +++ lib/logaling/project.rb 2012-07-03 23:36:59 +0900 (513fcc4) @@ -45,15 +45,6 @@ module Logaling File.basename(@path) end - def glossaries - all_glossary_source_path = Dir.glob(File.join(glossary_source_path, "*")) - glossaries = all_glossary_source_path.map do |source_path| - name, source_language, target_language, type = File.basename(source_path).split(/\./) - glossary(source_language, target_language) - end - glossaries.uniq{|glossary| glossary.to_s } - end - def glossary(source_language, target_language) Logaling::Glossary.new(name, source_language, target_language, self) end @@ -66,6 +57,15 @@ module Logaling @repository.logaling_db_home end + def glossaries + all_glossary_source_path = Dir.glob(File.join(glossary_source_path, "*")) + glossaries = all_glossary_source_path.map do |source_path| + name, source_language, target_language, type = File.basename(source_path).split(/\./) + glossary(source_language, target_language) + end + glossaries.uniq{|glossary| glossary.to_s } + end + def glossary_sources all_glossary_source_path = Dir.glob(File.join(glossary_source_path, "*")) all_glossary_source_path.map do |source_path| -------------- next part -------------- An HTML attachment was scrubbed... 下载