Test data: the "Car" class must have a "clone" function.
parent
cab18cd26b
commit
345390f4db
|
@ -93,6 +93,8 @@ class Car
|
||||||
property color : String # a simple attribute (1-n relations)
|
property color : String # a simple attribute (1-n relations)
|
||||||
property keywords : Array(String) # tags about a car, example: "shiny" (n-n relations)
|
property keywords : Array(String) # tags about a car, example: "shiny" (n-n relations)
|
||||||
|
|
||||||
|
def_clone
|
||||||
|
|
||||||
def initialize(@name, @color, @keywords)
|
def initialize(@name, @color, @keywords)
|
||||||
end
|
end
|
||||||
class_getter cars = [
|
class_getter cars = [
|
||||||
|
|
Loading…
Reference in New Issue