I’ve seen a number of references to being able to pass an argument to
cycle() to limit its behavior to a finite number of iterations.
However, I get this in irb 1.9.0:
ruby 1.9.0 (2007-12-25 revision 14709) [i686-darwin9.4.0]
ArgumentError: wrong number of arguments(1 for 0)
cycle' from (irb):1 from /usr/local/lib/ruby/1.9.0/irb.rb:150:inblock (2 levels) in
signal_status' from /usr/local/lib/ruby/1.9.0/irb.rb:147:inblock in eval_input’
eval_input' from /usr/local/lib/ruby/1.9.0/irb.rb:70:inblock in start’
catch' from /usr/local/lib/ruby/1.9.0/irb.rb:69:instart’
from /usr/local/bin/irb:13:in `’
Any thoughts on why this doesn’t work for me?