Ruby / Rails Code Snippets
Nov 10, 2005
This reads information from an ini file
<br><BR>
Now to get this to work, make an ini file called hello.ini in a folder called hello from your main ruby directory, place this..
Sep 19, 2005
Prints an indented exception class hiearchy.
Aug 24, 2005
Uses a list of regular expressions and replacement strings
to make changes in text files.
Put in file "edit-all.rb" and run with
ruby edit-all.rb *.txt
Now accepts the..
Aug 24, 2005
How to sort an array of strings.
Aug 24, 2005
This time a greeting is printed using an object-oriented
approach.
Aug 18, 2005
This is a very simple Ruby snippet that creates an unnecessary function.