class Rgot::PB

Public Class Methods

new(bn:) click to toggle source
# File lib/rgot/pb.rb, line 5
def initialize(bn:)
  @bn = bn
end

Public Instance Methods

next() click to toggle source
# File lib/rgot/pb.rb, line 9
def next
  (0 < @bn).tap { @bn -= 1 }
end