Sha256: c8b072b2fae6e0e4badb2d1117811bdf7a6c40f076c8d5fb26c2906ff11a5a9e
Contents?: true
Size: 351 Bytes
Versions: 7
Compression:
Stored size: 351 Bytes
Contents
module Coltrane module Renderers module TextRenderer class HashDrawer < BaseDrawer alias hash model def render options = hash.delete(:options) || {} hash.map { |k, v| "#{k}: \n\n" + TextRenderer.render(v, **options) }.join("\n") end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems