Sha256: d86ea8c835d715ac7d10034988418f6063e607274b9dd287c3aa1f6b73ffe8a1
Contents?: true
Size: 497 Bytes
Versions: 13
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class ClauseRef < Stepmod::Utils::Converters::Base def convert(node, _state = {}) " {{#{normalized_ref(node['linkend'])}}} " end private def normalized_ref(ref) return unless ref || ref.empty? ref.to_s.split(":").last.squeeze(" ").strip end end ReverseAdoc::Converters.register :clause_ref, ClauseRef.new end end end
Version data entries
13 entries across 13 versions & 1 rubygems