New to Ruby and need some help

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

When you use “==”, that’s a comparison and will return true or false. To
assign a value, use “=”.
If you define “puts” inside your class and then call “puts” inside that
method, you’re creating an infinite loop. Call it something else.

Also inside initialize you are assigning a #String to string local
variable, that has no sense since get erased when initialize stop
executing, I mean you don’t do nothing with that.