Sha256: 4590e0203d5819d343c99afbac0d693b2d2ae6e4bc8dea55e56d46ebba40fa55

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

module Stepmod
  module Utils
    module Converters
      class ExtDescription < ReverseAdoc::Converters::Base
        def convert(node, state = {})
          state = state.merge(schema_name: node["linkend"])
          child_text = treat_children(node, state).strip

          <<~TEMPLATE
            (*"#{node['linkend']}"
            #{child_text}
            *)
          TEMPLATE
        end
      end
      ReverseAdoc::Converters.register :ext_description, ExtDescription.new
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stepmod-utils-0.3.12 lib/stepmod/utils/converters/ext_description.rb
stepmod-utils-0.3.11 lib/stepmod/utils/converters/ext_description.rb
stepmod-utils-0.3.10 lib/stepmod/utils/converters/ext_description.rb
stepmod-utils-0.3.9 lib/stepmod/utils/converters/ext_description.rb
stepmod-utils-0.3.8 lib/stepmod/utils/converters/ext_description.rb
stepmod-utils-0.3.7 lib/stepmod/utils/converters/ext_description.rb