<< 32bitVs64bit | Index | AliasMethodAlternative >>
http://ruby.about.com/od/rubyfeatures/a/aliasing.htm
Code
#!/usr/bin/env ruby
class Microwave
def on
puts "The microwave is on"
end
alias :start :on
end
m = Microwave.new
m.start # same as m.on