null+****@clear*****
null+****@clear*****
Thu Jun 28 12:02:11 JST 2012
SHIMADA Koji 2012-06-02 10:54:12 +0900 (Sat, 02 Jun 2012) New Revision: 8caae03533b1e84286f36930a9a30dbe8dae8a55 https://github.com/logaling/logaling-command/commit/8caae03533b1e84286f36930a9a30dbe8dae8a55 Merged 7228757: Merge pull request #60 from logaling/refactor-structure Log: Extract Logaling::Command::Application#decorate_glossary_name Modified files: lib/logaling/command/application.rb Modified: lib/logaling/command/application.rb (+5 -1) =================================================================== --- lib/logaling/command/application.rb 2012-05-30 20:06:44 +0900 (faca3e1) +++ lib/logaling/command/application.rb 2012-06-02 10:54:12 +0900 (fc586ef) @@ -244,7 +244,7 @@ module Logaling::Command if****@repos*****_counts > 1 glossary_name = term[:glossary_name] if term[:glossary_name] ==****@confi***** - glossary_name = glossary_name.foreground(:white).background(:green) + glossary_name = decorate_glossary_name(glossary_name) end end printer(source_string, target_string, note, @@ -349,6 +349,10 @@ module Logaling::Command Pager.run unless options["no-pager"] end + def decorate_glossary_name(glossary_name) + glossary_name.foreground(:white).background(:green) + end + def extract_keyword_and_coloring(snipped_term, term) return term if snipped_term.empty? || options["no-color"] display_string = snipped_term.map do |word| -------------- next part -------------- An HTML attachment was scrubbed... 다운로드