Sha256: 8524b9a3eb145c3d062c41c36776541fd4a98c55a57c345f301f5e3d8c2cc08d

Contents?: true

Size: 189 Bytes

Versions: 1

Compression:

Stored size: 189 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
rgot-1.2.0 lib/rgot/pb.rb