In the ruby (2.2.0) String class documentation, the very first INSTANCE method is the following:
str % arg → new_str
Format—Uses str as a format specification, and returns the result of applying it to arg. (...)
The first example provided is:
"%05d" % 123 #=> "00123"
and works as stated.
Ok, but without a '.' the '%' can't be a method, can it?
And if it is not, what is instead (and why is listed under the 'instance methods'?)