[Groonga-commit] groonga/groonga-command at d1ce20a [master] Suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 21 12:59:59 JST 2016


Kouhei Sutou	2016-03-21 12:59:59 +0900 (Mon, 21 Mar 2016)

  New Revision: d1ce20a6d16997b2bb076479f9611d8eb4e39f72
  https://github.com/groonga/groonga-command/commit/d1ce20a6d16997b2bb076479f9611d8eb4e39f72

  Message:
    Suppress a warning

  Modified files:
    lib/groonga/command/base.rb

  Modified: lib/groonga/command/base.rb (+5 -8)
===================================================================
--- lib/groonga/command/base.rb    2016-03-21 12:55:18 +0900 (3e7c2ae)
+++ lib/groonga/command/base.rb    2016-03-21 12:59:59 +0900 (65406e1)
@@ -51,7 +51,11 @@ module Groonga
         end
       end
 
-      attr_reader :command_name, :arguments
+      # @return [String] The command name.
+      #
+      # @since 1.1.8
+      attr_reader :command_name
+      attr_reader :arguments
       attr_accessor :original_format, :original_source, :path_prefix
       def initialize(command_name, pair_arguments, ordered_arguments=[])
         @command_name = command_name
@@ -66,13 +70,6 @@ module Groonga
         command_name
       end
 
-      # @return [String] The command name.
-      #
-      # @since 1.1.8
-      def command_name
-        @command_name
-      end
-
       def [](name)
         @arguments[normalize_name(name)]
       end
-------------- next part --------------
HTML����������������������������...
下载 



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