Simple Class Question

Discussion in 'Ruby' started by eggie5, Nov 20, 2007.

  1. eggie5

    eggie5 Guest

    Why can't I do this?

    class Service

    class Request

    eggie5, Nov 20, 2007
    1. Advertisements

  2. Alle marted=EC 20 novembre 2007, eggie5 ha scritto:
    Because the body of the class is executed as soon as it is read, that is,=20
    before class Request is defined.

    Stefano Crocco, Nov 20, 2007
    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.