Sha256: 63c47dba8de9d5f93602673d6d5995b7761fa1b8ebb99c107fa04d9b405850d6

Contents?: true

Size: 517 Bytes

Versions: 14

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

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

          <<~TEMPLATE


            [example]
            ====
            #{treat_children(node, state).strip}
            ====

          TEMPLATE
        end
      end
      ReverseAdoc::Converters.register :example, Example.new
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
stepmod-utils-0.6.7 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.6.6 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.6.5 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.6.3 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.6.2 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.6.1 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.6.0 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.5.0 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.4.14 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.4.13 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.4.12 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.4.11 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.4.10 lib/stepmod/utils/converters/example.rb
stepmod-utils-0.4.9 lib/stepmod/utils/converters/example.rb