Sha256: ee0f8dafb29db72f772a17b666e7544aace53ef8c1da9eaf37cd01e3fa3c6047

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 Bytes

Contents

# citationdata class
#
# Copyright (c) Peter Lane, 2013.
# Released under Open Works License, 0.9.2

module AsciidoctorBibliography
  # Class to hold information about a citation in text:
  # the text forming the citation, its type, pretext, and enclosed cites
  class CitationData 
    attr_reader :original, :type, :pretext, :cites 

    def initialize original, type, pretext, cites
      @original = original
      @type = type
      @pretext = if pretext.nil?
                   ''
                 else
                   pretext
                 end
      @cites = cites
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asciidoctor-bibliography-0.1 deprecated/asciidoctor-bibliography/citationdata.rb
asciidoctor-bibliography-0.0.1.dev deprecated/asciidoctor-bibliography/citationdata.rb