class TRecs::TerminalInputTicker
Attributes
player[RW]
Public Class Methods
new(*)
click to toggle source
# File lib/trecs/tickers/terminal_input_ticker.rb, line 4 def initialize(*) end
Public Instance Methods
start()
click to toggle source
# File lib/trecs/tickers/terminal_input_ticker.rb, line 7 def start while (input = gets) =~ /\A[0-9]+\Z/ time = input.to_i player.tick(time) end end
to_s()
click to toggle source
# File lib/trecs/tickers/terminal_input_ticker.rb, line 13 def to_s "<#{self.class}>" end
Also aliased as: inspect