Sha256: 87391ba1a90552f8350291488480a1e59608eacfae89cae886fa3054aa942ae0
Contents?: true
Size: 278 Bytes
Versions: 7
Compression:
Stored size: 278 Bytes
Contents
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 @bn = bn end def next (0 < @bn).tap { @bn -= 1 } end end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
rgot-0.1.5 | lib/rgot/pb.rb |
rgot-0.1.4 | lib/rgot/pb.rb |
rgot-0.1.3 | lib/rgot/pb.rb |
rgot-0.1.2 | lib/rgot/pb.rb |
rgot-0.1.1 | lib/rgot/pb.rb |
rgot-0.1.0 | lib/rgot/pb.rb |
rgot-0.0.5 | lib/rgot/pb.rb |