Architecting a Solution

Submitted By:
david

Difficulty:
Easy

Tags:
structs, classes

Instructions:
Use a Struct to define an Architect class.

Hidden Code:
There is hidden code with assertions that is also being run to test out your code.

Code:
___

flr = Architect.new("frank loyd wright")
imp = Architect.new("I. M. Pei", ["new college dorms", "jfk library"])

flr.works = ["Guggenheim", "fallingwater"]

assert_equal flr.name, "frank loyd wright"
assert_equal imp.works, ["new college dorms", "jfk library"]

Your Solution

Ruby 1.9.3

Back to Problems