I’m beginning to work with ruby and I have a conceptual problem. Let’s
say I have two files:
@msg = “Hello, World2”
@msg = “Hello, World”
h = Hello.new()
h2 = Hello2.new()
print “Press RETURN”
This is obviously a conceptual excercise. I want to use class
“Hello2” in my hello.rb code. However this doesn’t compile.
What is wrong with this code? How is something like this done in Ruby?