From: Claudio Bustos on 22 Feb 2010 12:55 > Shoes.app :width=> 400, :height=>400 do > class Movechecker > attr_accessor :board > def initialize > @board = [] > for r in 0...17 > @board [r] = 0 > end > end > end > hopefully this is what you meant first end: for loop second end: def end third end: class end fourth end: ? You miss a "end" -- Posted via http://www.ruby-forum.com/.
From: Moe Fred on 22 Feb 2010 23:31
Claudio Bustos wrote: > >> Shoes.app :width=> 400, :height=>400 do >> class Movechecker >> attr_accessor :board >> def initialize >> @board = [] >> for r in 0...17 >> @board [r] = 0 >> end >> end >> end >> hopefully this is what you meant > > first end: for loop > second end: def end > third end: class end > fourth end: ? > > You miss a "end" Cool this help at least now I don't have any syntax error, and my shoe window opens up, but how do I go about and create a board, what method would I use to create horizontal and vertical lines??? -- Posted via http://www.ruby-forum.com/. |