Sha256: 85f838a4920d494ae201c30562d1cfc200ed6c0959527bb5b86abdfdc804206b
Contents?: true
Size: 518 Bytes
Versions: 13
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class Definition < Stepmod::Utils::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
13 entries across 13 versions & 1 rubygems