Class: Rgot::PB
- Inherits:
-
Object
- Object
- Rgot::PB
- Defined in:
- lib/rgot/pb.rb
Instance Method Summary collapse
-
#initialize(bn:) ⇒ PB
constructor
A new instance of PB.
- #next ⇒ Object
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
#next ⇒ Object
9 10 11 |
# File 'lib/rgot/pb.rb', line 9 def next (0 < @bn).tap { @bn -= 1 } end |