Hi Tony, I'm glad that ruby-marc appears to be generally useful. Another (even simpler) way to do what you want is: record.to_marc Which, I think, would do the same thing you're doing with MARC::Writer.encode. If you want to write up a block of text to plop into the README, feel free to send some me some copy (wholesale edits also welcome). Thanks, -Ross. On Tue, Mar 15, 2011 at 2:40 PM, Tony Zanella <[log in to unmask]> wrote: > Hello all, > If I may suggest adding to the documentation for the marc gem > (http://marc.rubyforge.org/)... > > Currently, the documentation gives examples for how to read, create and write > MARC records. > > The source code also includes an "encode" method in MARC::Writer, which came > in handy for me when I needed to send an encoded record off to be archived on > the fly, without writing it to the filesystem. > > That method isn't in the documentation, but it would be nice to see there! It > could be as simple as: > > # encoding a record > MARC::Writer.encode(record) > > Thanks for your consideration! > Tony >