Sha256: 1a82d0b2bd1518ea5fb3c98912ebb780d7ffbb28776b4ce8c00ab54abb7df170

Contents?: true

Size: 467 Bytes

Versions: 13

Compression:

Stored size: 467 Bytes

Contents

module Stepmod
  module Utils
    module Converters
      class ExpressRefExpressDescription < Stepmod::Utils::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 :express_ref,
                                       ExpressRefExpressDescription.new
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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