Sha256: 1150aa1178d85d8cf63df5787557ff7883417a19b2d0c8a261615c7e7a6b04f4

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

module Stepmod
  module Utils
    module Converters
      class ModuleRefExpressDescription < ReverseAdoc::Converters::Base
        def convert(node, _state = {})
          parts = node["linkend"].to_s.split(":").last.split(".")
          "<<express:#{parts.join('.').strip},#{parts.last.strip}>>"
        end
      end
      ReverseAdoc::Converters.register :module_ref,
                                       ModuleRefExpressDescription.new
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stepmod-utils-0.3.22 lib/stepmod/utils/converters/module_ref_express_description.rb
stepmod-utils-0.3.21 lib/stepmod/utils/converters/module_ref_express_description.rb
stepmod-utils-0.3.20 lib/stepmod/utils/converters/module_ref_express_description.rb
stepmod-utils-0.3.19 lib/stepmod/utils/converters/module_ref_express_description.rb
stepmod-utils-0.3.18 lib/stepmod/utils/converters/module_ref_express_description.rb
stepmod-utils-0.3.17 lib/stepmod/utils/converters/module_ref_express_description.rb