Relying on parsing stdout is inherently risky, so it's parsing the page size if it can find it, otherwise relying on a reasonable default. A lot of non-ruby implementations I've seen simply hard-code the page size, but that's not very future-proof.