I want to be able to do the following. How would I go about it? (without class variables)
Code Ruby:class Message def setMessage(message) message end end class NewMessage < Message attr_accessor :test def intialize @test = setMessage("Hello World") end def output @test end end puts NewMessage.new.output -> "Hello World"





Bookmarks