Articles in Ruby Tutorials

Getting Code Ready for Ruby 1.9

I want to share some tips I learned converting code to run on Ruby 1.9

I Just Want One Character!

Here's a simple trick that comes in handy surprisingly often. If you want "any key" to really work for things other than return, you will like this one

RegexpChallenge

I want to share a trivial challenge and response library I whipped up for practicing regular expressions

String Has Other Methods Besides =~ and sub()

There are some fun tricks you can perform on String objects even without reaching for regular expressions. Here are just a few

Do I Need (These Parentheses()?)

I want to clarify the age old question of when it's allowed to drop the parentheses in Ruby. I'll do that with both a simple and expanded set of rules

Unit Testers Get More Chicks

In this article, I show a complete example of test driven development from start to finish. Make sure you have a little free time when you tackle this one, it's pretty long

The Why and How of Iterators

This explanation I gave to a friend about iterators might help other understand why we have them and how to use them

Class Level Mixins

In this article, I show how to mix methods in as class methods, instead of instance methods

Code as a Data Type

If you are confused about any part of Ruby's blocks, from why we have them to how to use them in your own code, this article should provide some insight

Add to Subversion

In this article, I share a quick tip for building a Subversion Rake task that will add new files to your project