Sha256: 51a16b3923171981d19ff9216e05d454eb734b36bb1ae659c4789aac5f5b47a2

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Bolognese
  module Writers
    module CitationWriter
      def citation
        cp = CiteProc::Processor.new(style: style, locale: locale, format: 'html')
        cp.import Array.wrap(citeproc_hsh)
        bibliography = cp.render :bibliography, id: id
        bibliography.first
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bolognese-1.0.30 lib/bolognese/writers/citation_writer.rb