terrydievendorf/sea-c17-ruby — pull request #7 by ryansobol (2014-08-05 03:13:11+00:00)
Title: Grade for Class 8 Assignment

Good job, Terry.

#### Exercise 1

- No crashes, works as expected. 4 points
- Prefer `block.call` over the `yield` keyword

#### Exercise 2

- No crashes, works as expected. 4 points
- Prefer `block.call` over the `yield` keyword

#### Exercise 3

- No crashes, works as expected. 4 points
- Prefer `block.call` over the `yield` keyword

#### Exercise 4

- No crashes, works as expected. 4 points
- Prefer `block.call` over the `yield` keyword

#### Exercise 5

- No crashes, but doesn't work as expected. 3 points
- When `Time.new.hour` is `12`, it should `DONG!` 12 times, not 0.
- Nice job passing the `block` as an argument. +1 point

#### Exercise 6

- No crashes, but doesn't work as expected. 3 points
- Same as above, so I won't penalize you twice. +1 point
- Prefer `block.call` over the `yield` keyword

#### Exercise 7

Crashes, but is easily fixed. 2 points

The program's output:

```
$ ruby 7_say_no_to_yolo.rb
7_say_no_to_yolo.rb:32: syntax error, unexpected end-of-input, expecting keyword_end
```

Should be:

```
$ ruby 7_say_no_to_yolo.rb
OMG
Life is too short
ROTFL
Life is too short
FTW
```

- Prefer the `each` method over the `while` keyword when iterating over an Array

#### Total

`4 + 4 + 4 + 4 + 3 + 1 + 3 + 1 + 2 = 26` :star: