From: Chad Perrin Date: 2012-07-03T10:16:08+09:00 Subject: Re: ruby_rhymes question On Tue, Jul 03, 2012 at 01:52:53AM +0900, Amiee Monticello wrote: > Chad Perrin wrote in post #1067051: > > On Mon, Jul 02, 2012 at 09:51:26AM +0900, Amiee Monticello wrote: > >> Yes, however, I am just learning about ruby and working with the basic > >> of basics, these examples, I have no idea how to turn into a working > >> ruby program. :( > > > > Are you on MS Windows or something Unix-like? > > Ubuntu Linux. Do you know about using "require" to use a library? Do you know about shebang lines to ensure the correct interpreter runs your program? I recommend this for Ruby: #!/usr/bin/env ruby Do you know about changing file permissions to make a program executable? Something like this should work for you: chmod 700 filename (where "filename" is the name of your Ruby program file) Do you know about execution paths? I *think* Ubuntu automatically adds "~/bin" to your path (not sure; I'm not an Ubuntu user), so you could put your program there to be able to run it from pretty much anywhere without having to specify the path to it when executing the program. If you have all that handled, I guess you might specifically be asking for more about the library's API, in which case you could try contacting the person who wrote the library directly to ask for help. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]