YUKI Hiroshi
null+****@clear*****
Thu Oct 24 18:31:42 JST 2013
YUKI Hiroshi 2013-10-24 18:31:42 +0900 (Thu, 24 Oct 2013) New Revision: f775f668624fcce5fb5f68170ac8d9bdf2c9843d https://github.com/droonga/fluent-plugin-droonga/commit/f775f668624fcce5fb5f68170ac8d9bdf2c9843d Message: Use generic name Terms#terms => Terms#each Modified files: benchmark/benchmark.rb Modified: benchmark/benchmark.rb (+2 -2) =================================================================== --- benchmark/benchmark.rb 2013-10-24 18:31:02 +0900 (e19d272) +++ benchmark/benchmark.rb 2013-10-24 18:31:42 +0900 (a6f76e9) @@ -21,12 +21,12 @@ class Benchmark class Terms class << self def generate - new.to_enum(:terms) + new.to_enum(:each) end end FIRST_INITIAL_LETTER = "㐀" - def terms + def each initial_letter = FIRST_INITIAL_LETTER while true do yield "#{initial_letter}#{random_term}" -------------- next part -------------- HTML����������������������������... 下載