Ruby implementation of Portable Action Notation format