3 Replies - 4705 Views - Last Post: 22 October 2006 - 09:04 PM Rate Topic: -----

#1 capty99  Icon User is offline

  • i am colt mccoy
  • member icon

Reputation: 98
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Ruby and Irb

Posted 01 September 2006 - 07:27 PM

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: 01 September 2006 - 07:36 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Ruby and Irb

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Ruby and Irb

Posted 01 September 2006 - 08:20 PM

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.rubycentr...k/html/irb.html

as does rubygarden:
http://wiki.rubygard...b/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...
Was This Post Helpful? 0
  • +
  • -

#3 capty99  Icon User is offline

  • i am colt mccoy
  • member icon

Reputation: 98
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Re: Ruby and Irb

Posted 03 September 2006 - 11:16 AM

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.
Was This Post Helpful? 0
  • +
  • -

#4 rubyguy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 21-October 06

Re: Ruby and Irb

Posted 22 October 2006 - 09:04 PM

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1