Sha256: 2925001a020ca14f468ddb61f9e33d5ed557dcc93631b42ea926b74a20898d19

Contents?: true

Size: 497 Bytes

Versions: 36

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class Note < ReverseAdoc::Converters::Base
        def convert(node, state = {})
          # If we want to skip this node
          return "" if state[:no_notes_examples]

          <<~TEMPLATE

            [NOTE]
            --
            #{treat_children(node, state).strip}
            --

          TEMPLATE
        end
      end
      ReverseAdoc::Converters.register :note, Note.new
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
stepmod-utils-0.4.6 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.4.5 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.4.2 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.4.1 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.4.0 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.37 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.36 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.35 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.34 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.33 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.32 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.31 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.30 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.29 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.28 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.27 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.26 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.25 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.24 lib/stepmod/utils/converters/note.rb
stepmod-utils-0.3.23 lib/stepmod/utils/converters/note.rb