S
Sagy Drucker
hello
i am (very) new at ruby, gotta learn it for my new job..
so please... keep it simple (i'm stupid) and be patient..
so,
i'm copying+pasting a simple ruby class:
class AnimalLottoTicket
....
....
end
and after the class, i'm writing 1 line i want to run, using this
class:
AnimalLottoTicket::NOTES = [:TOOT, :TWEET, :BLAT]
is this the correct way to run a program?
i get the error:
/home/sagy/RubymineProjects/rubyTest/test4.rb:35: Invalid redo
(SyntaxError)
i am using Rubymine... i installed gems version 2.3.1 (or similar) and
i have no idea what that means...
thanks...
i am (very) new at ruby, gotta learn it for my new job..
so please... keep it simple (i'm stupid) and be patient..
so,
i'm copying+pasting a simple ruby class:
class AnimalLottoTicket
....
....
end
and after the class, i'm writing 1 line i want to run, using this
class:
AnimalLottoTicket::NOTES = [:TOOT, :TWEET, :BLAT]
is this the correct way to run a program?
i get the error:
/home/sagy/RubymineProjects/rubyTest/test4.rb:35: Invalid redo
(SyntaxError)
i am using Rubymine... i installed gems version 2.3.1 (or similar) and
i have no idea what that means...
thanks...