Kouhei Sutou
null+****@clear*****
Tue Dec 17 18:03:18 JST 2013
Kouhei Sutou 2013-12-17 18:03:18 +0900 (Tue, 17 Dec 2013) New Revision: eef20fd8e07860d673472f9d39197f2abe3b140d https://github.com/droonga/drntest/commit/eef20fd8e07860d673472f9d39197f2abe3b140d Message: Use lambda for strict callback Modified files: lib/drntest/test-executor.rb Modified: lib/drntest/test-executor.rb (+1 -1) =================================================================== --- lib/drntest/test-executor.rb 2013-12-17 18:02:55 +0900 (734b621) +++ lib/drntest/test-executor.rb 2013-12-17 18:03:18 +0900 (0a6f49e) @@ -60,7 +60,7 @@ module Drntest def load_jsons(path) parser = Yajl::Parser.new objects = [] - parser.on_parse_complete = Proc.new do |object| + parser.on_parse_complete = lambda do |object| objects << object end Pathname(path).read.each_line do |line| -------------- next part -------------- HTML����������������������������...Download