Sha256: 6d350a3344a3dff5ece92b78c4890fad665c31f02fbf19d673d1b26b3483891f

Contents?: true

Size: 303 Bytes

Versions: 15

Compression:

Stored size: 303 Bytes

Contents

module Coltrane
  module Renderers
    module TextRenderer
      class HashDrawer < BaseDrawer
        alias hash model

        def render
          hash.map { |k, v|
            "#{k}: \n\n" +
            TextRenderer.render(v, **options)
          }.join("\n")
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
coltrane-3.4.2 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.4.1 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.4.0 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.3.3 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.3.2 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.3.1 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.3.0 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.2.0 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.1.3 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.1.2 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.1.1 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.1.0 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.0.0 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.0.0.rc1 lib/coltrane/renderers/text_renderer/hash_drawer.rb
coltrane-3.0.0.pre lib/coltrane/renderers/text_renderer/hash_drawer.rb