Functional & Object Oriented Programming in Ruby

Yes this code will raise an undefined method error, like in your example above, unless the guys did override one of those two core ruby methods, which would be wired in scope of learning video.
So I guess it’s just a plain old ruby typo and they didn’t actually run the code through the interpreter.