Sha256: a8d2caa95f58767101102f0ee66a9ae9dc7908967e432291f9fd92511fb8285a

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

require 'ghost_writer/index_writer/base'

class GhostWriter::IndexWriter
  class Rst < Base
    private

    def extname
      "rst"
    end

    def template
      path = File.join(File.expand_path(File.dirname(__FILE__)), "templates", "rst.erb")
      ERB.new(File.read(path), nil, "%-")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ghost_writer-0.5.0 lib/ghost_writer/index_writer/rst.rb
ghost_writer-0.4.2 lib/ghost_writer/index_writer/rst.rb