From: Timothy Hunter Date: 2007-04-23T08:54:52+09:00 Subject: Re: Arrow operator with dash instead of equals (->) Andrew Green wrote: > Hi, all, > > Is it possible to use -> as a method name in Ruby? > > No. A subset of Ruby's operators are implemented as methods. '>>' is one of those operators. '->' isn't a Ruby operator at all. The operators that are implemented as methods are: [], []=, **, !, ~, +, -, *, /, %, <<, >>,& ^, |, <=>, <=, <, >, >=, ==, ===, and =~.