Home
Username:
Password:
Programming With Ruby Tutorials

Running Ruby Programs / How to Run fxri on Windows




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

In this video we're going to look at how to run IRB from a Windows machine. An IRB stands for Interactive Ruby, and we actually looked at it in other videos a little bit, a little bit more in depth, but this one we'll look at the different platforms and how you access it. So in all the platforms, IRB can be accessed from a command line prompt as long as your paths are set up correctly, you can just type it in IRB and that takes you to the interactive Ruby prompt as you see here. And it works and it's a full prompt, does whatever you'd like it to do. So there we have string. We can echo string, we can reverse string, we can play around so this little shell allows you to do what the name says, which is interact with Ruby. But I'd to show you on Windows a program that really makes things a lot nicer in many ways, and that's called FXRI, which is a graphical interface to the documentation, but the, which is cool in itself, but it also includes IRB running here. So you can actually browse this documentation and fool around with stuff. If you're trying to figure out how to build a script or something, and it's searchable, so if I type in string, and I want methods, so I go in here and try that I can see all these string methods that come up here. Like ah, I did, just did that reverse one, so let's go down here and find reverse, here's reverse, and you can see what it does. So reverse returns a new string with the characters from string, the original one, in reverse order. So we'll do this again, and do string reverse. There you go. And there's all these other interesting methods that you can take a look through and see their documentation for them. So FXRI is installed when you use the Ruby Installer that we covered in another video and it's just sitting here in your programs submenu of your start menu and it runs pretty easily and it runs pretty nice. And that's how you get access to IRB.

Tutorial Information

Course: Programming With Ruby
Author: Al Anderson
SKU: 33788
ISBN: 1-934743-01-1
Release Date: 2007-08-21
Duration: 8.5 hrs / 113 lessons
Work Files: Yes
Captions: For Online University members only
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available