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.4.8 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.4.7 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.4.6 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.4.5 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.4.2 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.4.1 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.4.0 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.37 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.36 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.35 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.34 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.33 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.32 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.31 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.30 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.29 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.28 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.27 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.26 lib/stepmod/utils/converters/express_ref_express_description.rb
stepmod-utils-0.3.25 lib/stepmod/utils/converters/express_ref_express_description.rb