running a simple ruby program

Discussion in 'Ruby' started by Sagy Drucker, Jan 10, 2012.

  1. Sagy Drucker

    Sagy Drucker Guest

    i am (very) new at ruby, gotta learn it for my new job..
    so please... keep it simple (i'm stupid) and be patient..

    i'm copying+pasting a simple ruby class:
    class AnimalLottoTicket

    and after the class, i'm writing 1 line i want to run, using this
    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

    i am using Rubymine... i installed gems version 2.3.1 (or similar) and
    i have no idea what that means...
    Sagy Drucker, Jan 10, 2012
    1. Advertisements

  2. Welcome to Ruby!
    Looks OK, although:
    If we do not know the code (especially around line 35) we have neither.
    I'm afraid, you need to share more details.

    Kind regards

    Robert Klemme, Jan 10, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.