Sha256: 579fc1c14f9f029644038079dfa7169a9587f4ac22fb5c3afbed5334ec798cc6

Contents?: true

Size: 353 Bytes

Versions: 8

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class Example < ReverseAdoc::Converters::Base
        def convert(node, state = {})
          "\n\n[example]\n====\n#{treat_children(node, state).strip}\n====\n\n"
        end
      end
      ReverseAdoc::Converters.register :example, Example.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/example.rb
stepmod-utils-0.3.1 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.3.0 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.2.7 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.2.6 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.2.5 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.2.4 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.2.3 lib/stepmod/utils/converters/example.rb