YUKI Hiroshi
null+****@clear*****
Wed Apr 15 11:09:25 JST 2015
YUKI Hiroshi 2015-04-15 11:09:25 +0900 (Wed, 15 Apr 2015) New Revision: 97c346a3162451bb85001fbfe455e6715fe1bd52 https://github.com/droonga/droonga-engine/commit/97c346a3162451bb85001fbfe455e6715fe1bd52 Message: Use meaningful name Modified files: lib/droonga/single_step_definition.rb Modified: lib/droonga/single_step_definition.rb (+9 -5) =================================================================== --- lib/droonga/single_step_definition.rb 2015-04-15 11:06:23 +0900 (a0a88e0) +++ lib/droonga/single_step_definition.rb 2015-04-15 11:09:25 +0900 (23ef729) @@ -18,7 +18,7 @@ module Droonga attr_accessor :name attr_accessor :handler attr_accessor :collector - attr_writer :write, :random + attr_writer :write attr_writer :timeout_seconds_calculator attr_accessor :inputs attr_accessor :output @@ -28,7 +28,7 @@ module Droonga @handler = nil @collector = nil @write = false - @random = false + @user_defined_random = nil @timeout_seconds_calculator = lambda do |step| if step["timeout"] return step["timeout"] @@ -47,11 +47,15 @@ module Droonga @write end + def random=(value) + @user_defined_random = value + end + def random? - unles****@rando*****? - @random - else + if @user_defined_random.nil? not write? + else + @user_defined_random end end -------------- next part -------------- HTML����������������������������...Download