16: Class Basics, can't see the problem


#1



16: Class Basics


I can't see where I went wrong, but I get this message:
Oops, try again. It looks like your @from instance variable isn't set equal to the 'from' parameter passed to your initialize method.


class Message
    def initialize(to,from)
        @to = to
        @from = from
    end
end


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.