Sha256: 41fd476dab6a98efa585e65496e02718c5d93ea97daf03e8dd6f27e0a2e56cf5
Contents?: true
Size: 518 Bytes
Versions: 20
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class Description < 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 :description, Description.new end end end
Version data entries
20 entries across 20 versions & 1 rubygems