Sha256: add2ada2fbf8e088f8155ff302eeb6d5309f86a5dc07d99c2092491d9abe5b21

Contents?: true

Size: 325 Bytes

Versions: 5

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

module Stepmod
  module Utils
    module Converters
      class Synonym < ReverseAsciidoctor::Converters::Base
        def convert(node, state = {})
          "alt:[#{node.text.strip}]"
        end
      end

      ReverseAsciidoctor::Converters.register :synonym, Synonym.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/synonym.rb
stepmod-utils-0.1.4 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.1.3 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.1.2 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.1.1 lib/stepmod/utils/converters/synonym.rb