Welcome to Dream.In.Code
Become an Expert!

Join 137,393 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,143 people online right now. Registration is fast and FREE... Join Now!




Ruby and Irb

 
Reply to this topicStart new topic

Ruby and Irb

capty99
1 Sep, 2006 - 06:27 PM
Post #1

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,178



Thanked: 16 times
Dream Kudos: 550
My Contributions
Okay,
so just went to my first ruby class and its way over my head.

now, i know html, and i know some php, but im not a coder at all,
and so im gonna need some help here.

Where do i get started.
Ive got ruby downloaded and installed, and my class is using alot of irb to do all of this stuff.

so how do i use irb.
professor typed in some code and opened up something with file and save and all those good options on a nav bar at the top. but i have no idea how to do that,

im stuck in basic cmd with irb turned on.
does that even make sense?



also, tell me this
what changes do i need to make if im coding on a windows machine and its gonna have to run on either a unix or osx system.

This post has been edited by capty99: 1 Sep, 2006 - 06:36 PM
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Ruby And Irb
1 Sep, 2006 - 07:20 PM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,230



Thanked: 40 times
Dream Kudos: 25
My Contributions
Well, Irb can be used in many ways...are there particular functions you'd like to use it for? The PPG has a good section on using the Irb:
http://www.rubycentral.com/book/html/irb.html

as does rubygarden:
http://wiki.rubygarden.org/Ruby/page/show/Irb/TipsAndTricks

As for platforms, ruby is pretty much cross platform unless you're accessing platform dependant objects, such as specific file types, browser objects, etc...
User is offlineProfile CardPM
+Quote Post

capty99
RE: Ruby And Irb
3 Sep, 2006 - 10:16 AM
Post #3

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,178



Thanked: 16 times
Dream Kudos: 550
My Contributions
first off,
i just want to get to the place where you can save and edit programs in irb, im not sure how my prof did it or how he got to it.
User is offlineProfile CardPM
+Quote Post

rubyguy
RE: Ruby And Irb
22 Oct, 2006 - 08:04 PM
Post #4

New D.I.C Head
*

Joined: 21 Oct, 2006
Posts: 2


My Contributions
Irb is merely a console and not the best when it comes to editing or saving files. If you want to stick to something console-ish, go with vim and simply have multiple shells open. If you're on windows, use a simple text editor. When you update your file, use the load command to reload your saved file. Don't use require since that only loads it once.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/5/08 02:40AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month