Sha256: 3b3b6029d34e4c7e0e3e670a232216efc456562a1b2d39ece833629ac024db10

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class Note < ReverseAsciidoctor::Converters::Base
        def convert(node, state = {})
          <<~TEMPLATE
            [NOTE]
            --
            #{treat_children(node, state).strip}
            --
          TEMPLATE
        end
      end
      ReverseAsciidoctor::Converters.register :note, Note.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stepmod-utils-0.1.5 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.4 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.3 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.2 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.1 lib/stepmod/utils/converters/note.rb