Other Pages

Expand All


Extra Fun Ruby Stuff

We've gone over the basics, but Ruby has lots of other language features. Here's a quick overview, with links to more info about them.

Iterators are special loops that act on all the items in a collection.

Blocks are like a cross between functions and methods. They allow Ruby to express many powerful algorithms in a compact writing style.

Symbols are like strings that start with a colon, and they're used all over the place.

Chaining is a compact way to express a chain of events. Properly executed, chaining turns Ruby from prose into poetry.

Methods and Classes are the heart of Object-Oriented Programming. They

...and lots more...

Back to Learn To Code

If you find something that could be improved, please make a pull request or drop us a note via GitHub Issues (no technical knowledge required).

Source: https://github.com/RailsBridge-CapeTown