Introducing the Mindmapviz gem

require 'mindmapviz'

s = "
home # ellipse
  employment
  socialising
  learning
  health
"

mmv = Mindmapviz.new s, fields: %w(label shape),delimiter: ' # '
mmv.to_png 'mindmap.png'

Output

Resources