Merge pull request #3 from kkburr/65851836_about_objects_master

about objects master

[Delivers #65851836]
Fixes  def test_non_parallel_assignment &  def test_parallel_assignments.

* Learned that parallel assignments can be accessed individually.

* ex: first_name, last_name = ["John", "Smith"]
first_name = "John"

[#65851840]
Fixes test_parallel_assignments_with_extra_values and edgecase.rb

* I learned that if an array has an extra value unaccounted for,
it can still access the accounted-for values without error.

*Ex: first_name, last_name = ["John", "Smith", "III"]
first_name = "John"
last_name = "Smith"

* I learned I need to fix the error in the edgecase file as my first commit.

[#65851840]
Fixes def test_parallel_assignments_with_splat_operator.

* I learned that when an array has more values than are accounted for,
if an asterix is placed before the last descriptor.

* Ex: first_name, *last_name = ["John", "Smith", "III"]

first name = "John"

last name =  ["Smith", "III"]

[#65851840]
Fixes def test_parallel_assignments_with_too_few_variables

* I learned that if an array has too few variables,
calling the last variable will result in nil.

* Ex:   first_name, last_name = ["Cher"]

first_name = "Cher"

last_name = nil

[#65851840]
Fixes def test_parallel_assignments_with_subarrays

* I learned that if an array contains a subarray,
calling that value will display the entire subarray.

* Ex: first_name, last_name = [["Willie", "Rae"], "Johnson"]

first_name = ["Willie", "Rae"]

last_name = ["Johnson"]

[#65851840]
Fixes mistake caught after last commit.

* For line 36, had put ["Johnson"], should be "Johnson"

[#65851840]
Fixes def test_parallel_assignment_with_one_variable and
def test_swapping_with_parallel_assignment.

I learned:

* If an array has only one variable assignment but two variables in the array,
calling that assignment will show the first value of the array:

first_name = ["John", "Smith"]
first_name = "John"

* If parallel assignments are given to strings, they can be swapped:

first_name = "Roy"
last_name = "Rob"
first_name, last_name = last_name, first_name
first_name = "Rob"
last_name = "Roy"

[#65851840]