SHIMADA Koji
null+****@clear*****
Wed Dec 5 11:18:51 JST 2012
SHIMADA Koji 2012-12-05 11:18:51 +0900 (Wed, 05 Dec 2012) New Revision: c62f8ccf3c6def8a9981d4dc56b0f88577952af7 https://github.com/logaling/logaling-command/commit/c62f8ccf3c6def8a9981d4dc56b0f88577952af7 Log: Add relation between imported project and importer Modified files: lib/logaling/project.rb Modified: lib/logaling/project.rb (+18 -0) =================================================================== --- lib/logaling/project.rb 2012-11-29 11:11:42 +0900 (c64881f) +++ lib/logaling/project.rb 2012-12-05 11:18:51 +0900 (2fc8bda) @@ -151,6 +151,24 @@ module Logaling def imported? true end + + def description + external_glossary.class.description + end + + def url + external_glossary.class.url + end + + private + def external_glossary + unless @external_glossary + require 'logaling/external_glossary' + Logaling::ExternalGlossary.load + @external_glossary = Logaling::ExternalGlossary.get(name) + end + @external_glossary + end end class PersonalProject < FileBasedProject -------------- next part -------------- An HTML attachment was scrubbed... Download