From: "Iñaki Baz Castillo" Date: 2008-08-11T08:53:02+09:00 Subject: How to redefine != method? 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. -- Iñaki Baz Castillo