Sha256: a4dc25a2788fdcbeec8429a827a10289c29f5566ff7073f252644f9fb3661697

Contents?: true

Size: 311 Bytes

Versions: 14

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

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

      ReverseAdoc::Converters.register :synonym, Synonym.new
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
stepmod-utils-0.3.5 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.3.4 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.3.2 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.3.1 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.3.0 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.2.7 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.2.6 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.2.5 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.2.4 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.2.3 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.2.0 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.1.8 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.1.7 lib/stepmod/utils/converters/synonym.rb
stepmod-utils-0.1.6 lib/stepmod/utils/converters/synonym.rb