Hi all. I’m very, very new to Ruby and I have this code and I’m trying
to write an instance of the class and call the method change_number.
I’ve tried everything and just keep getting error messages. Any
suggestions?
class MyClass
def initialize
@number = 1
string = “it was the best of times, it was the worst of times”
end
def change_number(int)
@number == int
end
def puts(string)
puts string
end
end