Hi Tony,
Just in case it wasn't obvious, the source code is on GitHub [1]. As
Ross said, please consider forking it and sending a pull request for
any documentation improvements you want to do.
//Ed
[1] https://github.com/ruby-marc/ruby-marc
On Tue, Mar 15, 2011 at 3:18 PM, Ross Singer <[log in to unmask]> wrote:
> 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
>>
>
|