That's not quite right, the language has defined Int#days and 10 is actually Int(10). 10.days calls the instance method days on an instance of an Int (it has been years since I've used ruby so not sure if the stdlib class is actually Int)
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: