Ruby - Advanced Metaprogramming
Find the error in this Ruby code:
class Car
def initialize(model)
@model = model
end
end
car = Car.new('Tesla')
car.class_eval do
def model_name
@model
end
end