lib/berkeley_library/tind/marc/xml_writer.rb
# Writes the specified record to the underlying stream, writing the
# XML prolog and opening `<collection>` tag if they have not yet
# been written.
#
# @param record [::MARC::Record] the MARC record to write.
# @raise IOError if the underlying stream has already been closed.
Writes the specified record to the underlying stream, writing the
XML prolog and opening `` tag if they have not yet
been written.
Writes the specified record to the underlying stream writing the XML prolog and opening ` ` tag if they have not yet been written .
def write(record)
          ensure_open!
          record_element = XMLBuilder.new(record).build
          record_element.write_to(out, nokogiri_options)
          out.write("\n")
        end
def write ( record ) ensure_open! record_element = XMLBuilder . new ( record ) . build record_element . write_to ( out , nokogiri_options ) out . write ( "\n" ) end
Writes the specified record to the underlying stream, writing the
XML prolog and opening `<collection>` tag if they have not yet
been written.
Writes the specified record to the underlying stream writing the XML prolog and opening ` <collection > ` tag if they have not yet been written .
IOError if the underlying stream has already been closed.
IOError if the underlying stream has already been closed .
record
the MARC record to write.
the MARC record to write .