Sha256: 5c432599e856d2a917c19a23c57edcd512ea1c774acf87d24ae7bed2c3bf2697

Contents?: true

Size: 337 Bytes

Versions: 8

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stepmod-utils-0.3.2 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.1 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.0 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.2.7 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.2.6 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.2.5 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.2.4 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.2.3 lib/stepmod/utils/converters/note.rb