lib/rgot/pb.rb in rgot-0.1.5 vs lib/rgot/pb.rb in rgot-0.2.0

- old
+ new

@@ -1,11 +1,9 @@ module Rgot class PB attr_accessor :bn - # Ruby-2.0.0 wants default value of keyword_argument - def initialize(bn: nil) - raise ArgumentError, "missing keyword: bn" unless bn + def initialize(bn:) @bn = bn end def next (0 < @bn).tap { @bn -= 1 }