[Groonga-commit] droonga/fluent-plugin-droonga at f82c975 [master] Fix indent

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 19 15:54:56 JST 2014


YUKI Hiroshi	2014-02-19 15:54:56 +0900 (Wed, 19 Feb 2014)

  New Revision: f82c9758047dd6514703799732e23709cb52d614
  https://github.com/droonga/fluent-plugin-droonga/commit/f82c9758047dd6514703799732e23709cb52d614

  Message:
    Fix indent

  Modified files:
    lib/droonga/error_message.rb

  Modified: lib/droonga/error_message.rb (+32 -32)
===================================================================
--- lib/droonga/error_message.rb    2014-02-19 15:54:01 +0900 (33cce22)
+++ lib/droonga/error_message.rb    2014-02-19 15:54:56 +0900 (bf11b24)
@@ -18,44 +18,44 @@ require "droonga/status_code"
 
 module Droonga
   module ErrorMessage
-  class Error < Droonga::Error
-    STATUS_CODE = nil
-
-    attr_reader :detail
-
-    def initialize(message, detail=nil)
-      @detail = detail
-      super(message)
+    class Error < Droonga::Error
+      STATUS_CODE = nil
+
+      attr_reader :detail
+
+      def initialize(message, detail=nil)
+        @detail = detail
+        super(message)
+      end
+
+      def name
+        self.class.name.split("::").last
+      end
+
+      def status_code
+        self.class::STATUS_CODE
+      end
+
+      def response_body
+        body = {
+          "name"    => name,
+          "message" => message,
+        }
+        body["detail"] = @detail unles****@detai*****?
+        body
+      end
     end
 
-    def name
-      self.class.name.split("::").last
+    class InternalServerError < Error
+      STATUS_CODE = StatusCode::INTERNAL_SERVER_ERROR
     end
 
-    def status_code
-      self.class::STATUS_CODE
+    class BadRequest < Error
+      STATUS_CODE = StatusCode::BAD_REQUEST
     end
 
-    def response_body
-      body = {
-        "name"    => name,
-        "message" => message,
-      }
-      body["detail"] = @detail unles****@detai*****?
-      body
+    class NotFound < Error
+      STATUS_CODE = StatusCode::NOT_FOUND
     end
   end
-
-  class InternalServerError < Error
-    STATUS_CODE = StatusCode::INTERNAL_SERVER_ERROR
-  end
-
-  class BadRequest < Error
-    STATUS_CODE = StatusCode::BAD_REQUEST
-  end
-
-  class NotFound < Error
-    STATUS_CODE = StatusCode::NOT_FOUND
-  end
-  end
 end
-------------- next part --------------
HTML����������������������������...
Descargar 



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