A pineapple plant

A friend has this plant living in a pot on her balcony. Its called a pineapple plant, for obvious reasons, and is inidgenous to South Africa. While hiking in the Maloti Mountains, I was quite surprised to see one in the wild as I had assumed it was a sub-tropical plant. Does anyone have any more information about it?