Sha256: 1a274275e24f734dd9e7f8fadbe2bcaa5dc2642405aafb9f075379ad98e24c7a

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stepmod-utils-0.2.0 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.8 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.7 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.1.6 lib/stepmod/utils/converters/note.rb