Sha256: f5d090cb0752f027f4bed0d5e3e249ee01a596196da9258953ab25672d220209

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

module AsciidoctorBibliography
  class Index
    attr_reader :parent, :target, :attrs, :uuid

    def initialize(parent, target, attrs, uuid)
      @parent = parent
      @target = target
      @attrs = attrs
      @uuid = uuid
    end

    def placeholder
      "{#{uuid}}"
    end

    # attr_reader :ref, :pages

    # def initialize ref, pages
    #   @ref = ref
    #   @pages = pages
    #   # clean up pages
    #   @pages = '' unless @pages
    #   @pages.gsub!("--","-")
    # end

    # def to_s
    #   "#{@ref}:#{@pages}"
    # end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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