FormatR provides perl-like formats for ruby. These are used to create output with a similar format but with changing values. It also supports the ability to read in formatted text and extract values from the text.
Paul Rubel
gem "formatr", "~> 1.10.1"