Day 2: Variables and Conditional Logic

In irb, you can type the name of an object followed by a dot, then hit tab twice. This will show you all of the methods available on that object.

I’ve heard many times that almost everything is an object in Ruby. So far, everything I’ve encountered seems to be an object, so I went searching to find out what isn’t. My loyal readers (i.e., coworkers) will be happy to know that a post by David Black on the RubyLearning blog was the first result: Almost everything is an object (and everything is almost an object!)

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s