From 8cc7bc845d30a2acaa8c9b93e24efd0626c597da Mon Sep 17 00:00:00 2001 From: Naman Doshi Date: Fri, 5 Jan 2024 14:54:16 +0530 Subject: [PATCH] Update Ruby_Tutorial_-_Object_Method_Parameters.rb tried using the range? method defined but it threw a runtime error so changed it to between? and it works fine --- Ruby/Introduction/Ruby_Tutorial_-_Object_Method_Parameters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ruby/Introduction/Ruby_Tutorial_-_Object_Method_Parameters.rb b/Ruby/Introduction/Ruby_Tutorial_-_Object_Method_Parameters.rb index 3293c2c..ab80d51 100644 --- a/Ruby/Introduction/Ruby_Tutorial_-_Object_Method_Parameters.rb +++ b/Ruby/Introduction/Ruby_Tutorial_-_Object_Method_Parameters.rb @@ -7,4 +7,4 @@ # calling the method range? (which we have defined for you as a method for this example) on a and passing b and c as arguments. # write your code here -a.range?(b, c) +a.between?(b, c)