Sha256: 2a6b3043647ca3f02ec2b131772f127d2858ea5f4851c9bab9fb4d6387e55372

Contents?: true

Size: 329 Bytes

Versions: 16

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

require "asciidoctor"

module Milestoner
  module Renderers
    # Renders ASCII Doc as HTML.
    class Asciidoc
      def initialize client: Asciidoctor
        @client = client
      end

      def call(content) = client.convert content

      private

      attr_reader :client
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
milestoner-18.4.0 lib/milestoner/renderers/asciidoc.rb
milestoner-18.3.0 lib/milestoner/renderers/asciidoc.rb
milestoner-18.2.0 lib/milestoner/renderers/asciidoc.rb
milestoner-18.1.0 lib/milestoner/renderers/asciidoc.rb
milestoner-18.0.1 lib/milestoner/renderers/asciidoc.rb
milestoner-18.0.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.11.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.10.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.9.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.6.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.5.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.4.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.3.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.2.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.1.0 lib/milestoner/renderers/asciidoc.rb
milestoner-17.0.0 lib/milestoner/renderers/asciidoc.rb