Sha256: 0fc4ab5c9fba4938bac709850d154e9615dbf27a7a3ca38bdec6e79cfe713632

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class Example < ReverseAdoc::Converters::Base
        def convert(node, state = {})
          <<~TEMPLATE
            [example]
            ====
            #{treat_children(node, state).strip}
            ====
          TEMPLATE
        end
      end
      ReverseAdoc::Converters.register :example, Example.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/example.rb
stepmod-utils-0.1.8 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.1.7 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.1.6 lib/stepmod/utils/converters/example.rb