Sha256: 1594d35c43320e6e13160c2be00d199534b920fe42129051377c555e273e572a

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

module CiteProc
  class Processor

    extend Forwardable
    
    @defaults ||= {
      :locale => 'en-US',
      :style  => 'chicago-author-date',
      :engine => 'citeproc-js',
      :format => 'html'
    }

    class << self
      attr_reader :defaults
    end

    attr_reader :options, :engine, :items
    
    def_delegators :@engine, :process, :append, :preview, :bibliography, :style, :style=, :abbreviate, :abbreviations, :abbreviations=
     
    def initialize(options = {})
      @options = Processor.defaults.merge(options)
      @engine = Engine.autodetect(@options).new(:processor => self)
      @items = {}
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citeproc-0.0.2 lib/citeproc/processor.rb