Project

mindwords

0.0
The project is in a healthy, maintained state
Helps get what's in your mind into a structure using words and hashtags.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Dependencies

Runtime

~> 0.9, >= 0.9.2
~> 1.1, >= 1.1.3
 Project Readme

Introducing the mindwords gem

require 'mindwords'

s = "
milk #fridge
cheese #fridge #kitchen
cooker #kitchen
fridge #kitchen
paint #garage
laptop #computers #acer
kitchen #rooms
rooms #house
raspberrypi #computers
car service #car
car insurance #car
car mot #car
bitcoin #cryptocurrency #finances
cryptocurrency #finances
binance #accounts #cryptocurrency #finances #exchange
accounts #cryptocurrency
"

mw = MindWords.new(s)
puts mw.to_outline

Output:

garage
  paint
computers
  laptop
  raspberrypi
house
  rooms
    kitchen
      cooker
      fridge
        milk
        cheese
car
  car service
  car insurance
  car mot
finances
  cryptocurrency
    bitcoin
    accounts
      binance