[logaling-commit] logaling/logaling-command [master] Add defalut argument for Glossary#terms

Back to archive index

SHIMADA Koji null+****@clear*****
Thu Aug 16 16:31:56 JST 2012


SHIMADA Koji	2012-08-16 16:31:56 +0900 (Thu, 16 Aug 2012)

  New Revision: 48f72f3e604ee34f101951a59a98de85260505a3
  https://github.com/logaling/logaling-command/commit/48f72f3e604ee34f101951a59a98de85260505a3

  Merged 3e60d89: Merge pull request #75 from logaling/enable-wip-annotation

  Log:
    Add defalut argument for Glossary#terms

  Modified files:
    lib/logaling/glossary.rb

  Modified: lib/logaling/glossary.rb (+1 -1)
===================================================================
--- lib/logaling/glossary.rb    2012-08-13 20:53:36 +0900 (7850010)
+++ lib/logaling/glossary.rb    2012-08-16 16:31:56 +0900 (a08c269)
@@ -28,7 +28,7 @@ module Logaling
       @project = project
     end
 
-    def terms(annotation_word)
+    def terms(annotation_word=nil)
       raise Logaling::GlossaryDBNotFound unless File.exist?(@project.glossary_db_path)
       index
       terms = []
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



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