I read that alias keyword is used to create alias for methods,
operators and global variables.
I am using ruby version: ruby 1.9.3p551 (2014-11-13 revision 48407)
Here's an example for aliasing
class Fixnum alias_method :my_plus, :+ end puts 2.my_plus(3) #=> 5
The correct, full syntax for
+ is just a method defined for Fixnums.
It can also be called as
2 + 3, which is just syntactic sugar. As far as I know, it's not possible to add syntactic sugar to new methods.