Sha256: 1cdf69c86c8bf2d2d4400d11627da2ca03d2e5a9cf242174e2a9417a1a68dea3

Contents?: true

Size: 359 Bytes

Versions: 10

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class Dt < ReverseAdoc::Converters::Base
        def convert(node, state = {})
          return "\n\n{blank}::" if node.text.strip.length.zero?

          "\n\n#{node.text}:: "
        end

        ReverseAdoc::Converters.register :dt, Dt.new
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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