ACING THE FIRST SOFTWARE ENGINEERING CODE CHALLENGE: AT FLATIRON SCHOOl

Get a quick overview of where you need a firm understanding for the code challenge.

I think you’ll agree with me when I say :

Photo by Charles Deluvio on Unsplash

RUBY OBJECT METHODS

DATA TYPES IN RUBY

NUMERIC DATA TYPES

Ruby each Method

To iterate over an array in Ruby, use the .each method. It is preferred over a for loop as it is guaranteed to iterate through each element of an array.

Ruby for Loop

A block of code can be repeated a set amount of times with the for loop in Ruby.

Ruby while Loop

Putting a block of code in a while loop in Ruby will cause the code to repeatedly run the code as long as its condition is true.

OO PROGRAMMING:

Ruby Class

Ruby initialize Method

Ruby Class Variables

**Ruby attr_accessor Method

Ruby Block Parameter

# The block, {|i| puts i}, is passed the current array item each time it is evaluated. This block prints the item.

Now let’s see what we’ve learnt…

Photo by Josh Rakower on Unsplash

Take The Quiz

Software Engineer | Day Dreamer | Get Better by the Day