Hi, I can redefine == method by doing:
def ==(string)
but it gives me an error if I try:
def !=(string)
SyntaxError: compile error
(irb):2: syntax error, unexpected tNEQ
def !=(string); “hello” ; end
^
(irb):2: syntax error, unexpected kEND, expecting $end
from (irb):2
How could I solve it?
Thanks a lot.