lib/berkeley_library/tind/export/table.rb
# Returns a new Table for the provided MARC records.
#
# @param records [Enumerable<MARC::Record>] the records
# @param freeze [Boolean] whether to freeze the table
# @param exportable_only [Boolean] whether to include only exportable fields
# @return [Table] the table
Returns a new Table for the provided MARC records.
Returns a new Table for the provided MARC records .
def from_records(records, freeze: false, exportable_only: false)
            Table.new(exportable_only: exportable_only).tap do |table|
              records.each { |r| table << r }
              table.freeze if freeze
            end
          end
def from_records ( records , freeze : false , exportable_only : false ) Table . new ( exportable_only : exportable_only ) . tap do | table | records . each { | r | table << r } table . freeze if freeze end end
Returns a new Table for the provided MARC records.
Returns a new Table for the provided MARC records .
None
Table
records
None
freeze
whether to freeze the table
whether to freeze the table
exportable_only
whether to include only exportable fields
whether to include only exportable fields