I saw a sample code of Ruby where in a class can have two methods with
the same name and same set of parameters:

For example:

class method_versions
  def method
      puts "first"
  end

  def method
      puts "second"
  end
end

On executing: method_versions.new.method
it returns: second

Just in case I want to return the older version of the method, what
could be done?

-- 
Posted via http://www.ruby-forum.com/.