class AsciidoctorBibtex::CitationItem
A class to hold data for a single citation item.
Attributes
key[R]
locator[R]
Public Class Methods
new(key, locator)
click to toggle source
# File lib/asciidoctor-bibtex/citation_macro.rb, line 18 def initialize(key, locator) @key = key @locator = locator # clean up locator @locator ||= '' @locator = @locator.gsub('--', '-') end
Public Instance Methods
to_s()
click to toggle source
# File lib/asciidoctor-bibtex/citation_macro.rb, line 26 def to_s "#{@key}:#{@locator}" end