Sha256: a765df8ec854726ef22cf79d55a18bcb96b49c987d1e587731611cf83a3e1102

Contents?: true

Size: 158 Bytes

Versions: 2

Compression:

Stored size: 158 Bytes

Contents

module Rgot
  class PB
    attr_accessor :bn

    def initialize(bn:)
      @bn = bn
    end

    def next
      (0 < @bn).tap { @bn -= 1 }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rgot-1.1.0 lib/rgot/pb.rb
rgot-0.2.0 lib/rgot/pb.rb