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.
What have you tried? You might want to start with a text file that includes the gem, copy and paste the examples in and see what happens when you run 'em.
ยทยทยท
On Jul 1, 2012, at 6:51 PM, Amiee Monticello <lists@ruby-forum.com> 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.
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.
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.
What have you tried? You might want to start with a text file that
includes the gem, copy and paste the examples in and see what happens
when you run 'em.
Well, I've only tried writing some basic ruby code, not using any of the
gem packages (still learning how to use them). I'll read up some more,
thanks.
Well, I've only tried writing some basic ruby code, not using any of the
gem packages (still learning how to use them). I'll read up some more,
thanks.
Maybe you should start with a more popular and better documented gem to
learn the basics. The problem is that nobody know this rhyme gem, so it
will be difficult to find help for particular questions and problems (as
you could see).
For example, what about the gtk2 gem for building GUIs? It has an
extensive documentation including a tutorial for beginners: http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk
And this is actually useful if you're planning to write real
applications in the future.
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.
ยทยทยท
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?
On Mon, Jul 2, 2012 at 7:55 PM, Jan E. <lists@ruby-forum.com> wrote:
Hi,
Amiee Monticello wrote in post #1067062:
> Well, I've only tried writing some basic ruby code, not using any of the
> gem packages (still learning how to use them). I'll read up some more,
> thanks.
Maybe you should start with a more popular and better documented gem to
learn the basics. The problem is that nobody know this rhyme gem, so it
will be difficult to find help for particular questions and problems (as
you could see).
For example, what about the gtk2 gem for building GUIs? It has an
extensive documentation including a tutorial for beginners: http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk
And this is actually useful if you're planning to write real
applications in the future.