Profile Ruby with Blocks

Ruby makes it easy to profile any chunk of code, using Blocks and Procs. All you have to do is wrap the code you want to profile in a block and and ruby’s magic takes care of the rest.

»
Author's profile picture Carl Weis on Ruby

Reading and Writing YAML files in Ruby

Ruby makes it simple to read and write YAML files.

»
Author's profile picture Carl Weis on Ruby

English Number Converter in Ruby

This converter will take in any number and return the number in english words.

»
Author's profile picture Carl Weis on Ruby

Sorting arrays with Ruby

This simple example shows how you can manually sort arrays in Ruby, without using the sort method.

»
Author's profile picture Carl Weis on Ruby

Maps with Ruby

Here is a simple example of how to find continents for Civilization III, using Ruby. Although this is a slimed down version, the same principals apply.

»
Author's profile picture Carl Weis on Ruby