class PirateGame::TimeoutRenewer

A renewer that expires when its timeout is up

Attributes

timeout[R]

The timeout for the renewer (after first renewal)

Public Class Methods

new(timeout) click to toggle source

Creates a renewer that will expire after the timeout passes.

# File lib/pirate_game/timeout_renewer.rb, line 16
def initialize timeout
  @timeout = timeout
  @renew = true
end