Top

Ruby / Rails Code Snippets

  (6)  
Sort by 
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 code into the
Tags: inis 
0 comment(s)   |   Score: 0.0   |   Language: Ruby / Rails   |   Posted by log2 on Nov 10, 2005
Prints an indented exception class hiearchy.
Tags: class  exception  hiearchy  tree 
3 comment(s)   |   Score: 0.0   |   Language: Ruby / Rails   |   Posted by dr_bob on Sep 19, 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 target and the
2 comment(s)   |   Score: 7.0   |   Language: Ruby / Rails   |   Posted by hawker on Aug 24, 2005
How to sort an array of strings.
0 comment(s)   |   Score: 6.0   |   Language: Ruby / Rails   |   Posted by hawker on Aug 24, 2005
This time a greeting is printed using an object-oriented approach.
1 comment(s)   |   Score: 4.0   |   Language: Ruby / Rails   |   Posted by hawker on Aug 24, 2005
This is a very simple Ruby snippet that creates an unnecessary function.
Tags: def  function  puts 
4 comment(s)   |   Score: 7.7   |   Language: Ruby / Rails   |   Posted by Hawkee on Aug 18, 2005
Bottom