[Solved] Calling #[] on a ruby method [closed]

If I understand the question, you want a method that takes any number of arguments, and returns an object that will create a range of numbers when the [] method is used. This method takes any number of arguments (using the * splat operator), and then returns a proc, which [] can be used on. … Read more