Sha256: ebed871c7f1784810c22686fab7b6fc638a24dad009b14fd3c295cc167894322

Contents?: true

Size: 361 Bytes

Versions: 38

Compression:

Stored size: 361 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

38 entries across 38 versions & 1 rubygems

Version Path
stepmod-utils-0.3.24 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.23 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.22 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.21 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.20 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.19 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.18 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.17 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.16 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.15 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.14 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.13 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.12 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.11 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.10 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.9 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.8 lib/stepmod/utils/converters/dt.rb
stepmod-utils-0.3.7 lib/stepmod/utils/converters/dt.rb