Sha256: f1c47e4eb5d5c2ec1edc8205bec1250f2cf71c761a592f7fa23c9a8730195a14
Contents?: true
Size: 494 Bytes
Versions: 38
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class ClauseRef < ReverseAdoc::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
38 entries across 38 versions & 1 rubygems