Sha256: 5b8f90c8c97f6601ad07f32d0f6affa26ccf88a61ce7863ceaeab144de529e6a

Contents?: true

Size: 464 Bytes

Versions: 38

Compression:

Stored size: 464 Bytes

Contents

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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
stepmod-utils-0.3.24 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.23 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.22 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.21 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.20 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.19 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.18 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.17 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.16 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.15 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.14 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.13 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.12 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.11 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.10 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.9 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.8 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.7 lib/stepmod/utils/converters/express_ref_express_description.rb