[Groonga-commit] droonga/droonga-engine at a471cf0 [master] Use meaningful name

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 15 11:11:15 JST 2015


YUKI Hiroshi	2015-04-15 11:11:15 +0900 (Wed, 15 Apr 2015)

  New Revision: a471cf0daf7e6582f9cc8d90135ca57a88bf4d2e
  https://github.com/droonga/droonga-engine/commit/a471cf0daf7e6582f9cc8d90135ca57a88bf4d2e

  Message:
    Use meaningful name

  Modified files:
    lib/droonga/planner.rb

  Modified: lib/droonga/planner.rb (+9 -5)
===================================================================
--- lib/droonga/planner.rb    2015-04-15 11:09:25 +0900 (226d5e6)
+++ lib/droonga/planner.rb    2015-04-15 11:11:15 +0900 (cf2e871)
@@ -22,12 +22,12 @@ module Droonga
     include Loggable
     include ErrorMessages
 
-    attr_writer :write, :random, :collector_class
+    attr_writer :write, :collector_class
 
     def initialize(dataset)
       @dataset = dataset
       @write = false
-      @ramdom = nil
+      @specified_random = nil
       @collector_class = nil
     end
 
@@ -49,16 +49,20 @@ module Droonga
       end
     end
 
+    def random=(value)
+      @specified_random = value
+    end
+
     private
     def write?
       @write
     end
 
     def random?
-      unles****@rando*****?
-        @random
-      else
+      if @specified_random.nil?
         not write?
+      else
+        @specified_random
       end
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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