#### Topic: writing a method to give range from 1 to a number

I just started working with Ruby about a week ago, so I'm still trying to learn all of the basics.

How would I go about writing my own method that only takes one argument (a number) and then gives all the numbers from 1 to that number? I know that 1..10 will give me a range from 1-10, but I don't understand how to get the range when there is a variable involved.

Thanks!