SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: exit irb shell

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    exit irb shell

    Hello all,

    I am new to ruby...and to programming in general, so sorry for the stupid questions in advance :-).

    I am following along in the the Simply Rails 2 book and I am entering classes etc. into the irb shell in the ruby console window. The problem I am having is that sometimes I enter the wrong command and I can't figure out how to exit the irb shell. I have tried typing "exit" and that works sometimes, but sometimes it doesn't. The issue arose once after I hit the Tab key and the other time i don't think i pressed anything out of the ordinary.

    Please see screenshot for clarification.

    Can someone please help?

    Thanks!
    Attached Images Attached Images

  2. #2
    SitePoint Addict ruby-lang's Avatar
    Join Date
    Aug 2007
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You were missing a few ends. How many? You can see it by the last number in the prompt.

    Anyway, Ctrl-D will always work.

  3. #3
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! I feel like an official idiot for not figuring that one out :-). Thanks so much for the help!

    -Scott


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •