Sha256: 8b5f5a2b61b37d3f7839c60d89b14b30b267da119142dcb57ce3cfba7cb06c9d

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class ExpressRef < ReverseAsciidoctor::Converters::Base
        def convert(node, _state = {})
          "*#{node['linkend'].to_s.split('.').last}*"
        end
      end
      ReverseAsciidoctor::Converters.register :express_ref, ExpressRef.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stepmod-utils-0.1.5 lib/stepmod/utils/converters/express_ref.rb
stepmod-utils-0.1.4 lib/stepmod/utils/converters/express_ref.rb
stepmod-utils-0.1.3 lib/stepmod/utils/converters/express_ref.rb
stepmod-utils-0.1.2 lib/stepmod/utils/converters/express_ref.rb
stepmod-utils-0.1.1 lib/stepmod/utils/converters/express_ref.rb