Ruby thinks an integer I'm passing as an argument is a method : I am trying to write a simple function in ruby but keep getting this error: undefined method `b' for main:Object (NoMethodError).
Here is the code I have written can anyone tell me why I keep getting this.
    
    def get_sum(a,b)

	    if a == b do
		    return a
	    end

	    else

		    total = 0

  		    for num in a...b
    		    total += num
  		    end

  		    return total		
	    end

    end

This is obviously something really simple but would like to know why it is happening. Thanks in advance.