We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The fact that range? is a method that you have defined here (in a very hidden way, no less) is extermely confusing. Especially since Ruby has ranges in the std lib. I have 10 years of ruby experience and this question tripped me up. I was off searching docs for the ruby range? method assuming that "already defined" meant "a part of ruby". You need to find a much better way to present the topic of a method taking multiple arguments than this.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Tutorial - Object Method Parameters
You are viewing a single comment's thread. Return to all comments →
The fact that range? is a method that you have defined here (in a very hidden way, no less) is extermely confusing. Especially since Ruby has ranges in the std lib. I have 10 years of ruby experience and this question tripped me up. I was off searching docs for the ruby range? method assuming that "already defined" meant "a part of ruby". You need to find a much better way to present the topic of a method taking multiple arguments than this.