smblanchard/sea-c17-ruby — pull request #6 by ryansobol (2014-08-03 06:04:22+00:00)
Title: Grade for Class 6 Assignment

Good job, Sarah.

- Study the solutions provided :book:

#### Exercise 1

- No crashes, works as expected. 4 points
- Was hoping the solution would utilize `Time.new` as described in the problem

#### Exercise 2

- No crashes, works as expected. 4 points
- Prefer `{...}` over `do...end` for blocks with a single-line body

#### Exercise 3

- No crashes, works as expected. 4 points
- Use the `[]` method to directly access values, given a key, of a Hash object. Iteration is unnecessary an inefficient.

For example:

```ruby
some_hash = { "one" => 1, "two" => 2 }
some_hash["one"] #=> 1
```

#### Exercise 4

- Crashes when run, but can be easily fixed. 2 points

This output:

```
$ ruby 4_birthday_helper_write.rb
4_birthday_helper_write.rb:46:in `

': undefined method `capitalize' for nil:NilClass (NoMethodError)
```

Should be this:

```
$ ruby 4_birthday_helper_write.rb
Usage: 4_birthday_helper_write.rb NAME YEAR MONTH DAY
```

- The `has_key?` branch is the same as the `else` branch. Unnecessary. :zap:

#### Exercise 5

- No crashes, but doesn't work as expected. 3 points

The output:

```
$ ruby 5_arabic_numbers.rb bigboi
0
```

Should be:

```
$ ruby 5_arabic_numbers.rb bigboi
Invalid roman numeral 'bigboi'
```

#### Total

`4 + 4 + 4 + 2 + 3 = 17`