Class: Rgot::PB

Inherits:
Object
  • Object
show all
Defined in:
lib/rgot/pb.rb

Instance Method Summary collapse

Constructor Details

#initialize(bn:) ⇒ PB

Returns a new instance of PB.



5
6
7
# File 'lib/rgot/pb.rb', line 5

def initialize(bn:)
  @bn = bn
end

Instance Method Details

#nextObject



9
10
11
# File 'lib/rgot/pb.rb', line 9

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