lib/rgot/benchmark_result.rb in rgot-0.1.5 vs lib/rgot/benchmark_result.rb in rgot-0.2.0
- old
+ new
@@ -1,10 +1,7 @@
module Rgot
class BenchmarkResult
- # Ruby-2.0.0 wants default value of keyword_argument
- def initialize(n: nil, t: nil)
- raise ArgumentError, "missing keyword: n" unless n
- raise ArgumentError, "missing keyword: t" unless t
+ def initialize(n:, t:)
@n = n
@t = t
end
def to_s