- Ruby – What does map(&:name) mean in Ruby
thismight be reasonably renamed to
It's really referring to an execution context for the current scope, and while that context can be an instance of a class, it certainly doesn't have to be — it can be any object at all, and it can be modified at run-time.
It's important to note there that the value of the
thisobject is completely independent of where the containing function is defined.