Sha256: 408471bcad763d49bf2f3f3ab32bc8f17b6f78d205b054233ac09cf046f458ab
Contents?: true
Size: 515 Bytes
Versions: 52
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class Definition < ReverseAdoc::Converters::Base def convert(node, state = {}) treat_children(node, state) end private def treat_children(node, state) res = node.children.map { |child| treat(child, state) } res.map(&:strip).reject(&:empty?).join("\n\n") end end ReverseAdoc::Converters.register :definition, Definition.new end end end
Version data entries
52 entries across 52 versions & 1 rubygems