[Groonga-commit] groonga/groonga at 99640be [master] mrb: use splat and multiple assignments

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 25 21:53:32 JST 2014


Kouhei Sutou	2014-12-25 21:53:32 +0900 (Thu, 25 Dec 2014)

  New Revision: 99640bea3ea7592f3e291ff24a9e34281683e52e
  https://github.com/groonga/groonga/commit/99640bea3ea7592f3e291ff24a9e34281683e52e

  Message:
    mrb: use splat and multiple assignments

  Modified files:
    lib/mrb/scripts/command/grndb.rb

  Modified: lib/mrb/scripts/command/grndb.rb (+1 -2)
===================================================================
--- lib/mrb/scripts/command/grndb.rb    2014-12-25 21:50:20 +0900 (b9ae2f3)
+++ lib/mrb/scripts/command/grndb.rb    2014-12-25 21:53:32 +0900 (c5eef68)
@@ -2,8 +2,7 @@ module Groonga
   module Command
     class Grndb
       def initialize(argv)
-        @command = argv[0]
-        @arguments = argv[1..-1]
+        @command, *@arguments = argv
       end
 
       def run
-------------- next part --------------
HTML����������������������������...
Download 



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